v3.0.0 【优化】登录日志回显、版本号改为3.0、文件下载

This commit is contained in:
zhuoda
2024-01-15 21:49:04 +08:00
parent 4142295ee1
commit 851d913ab6
25 changed files with 6058 additions and 104 deletions

View File

@@ -1,3 +1,3 @@
NODE_ENV=production
VITE_APP_TITLE='SmartAdmin 预发布环境(Pre)'
VITE_APP_API_URL='http://preview.smartadmin.1024lab.net/smart-admin-api'
VITE_APP_API_URL='https://preview.smartadmin.vip/smart-admin-api'

View File

@@ -1,3 +1,3 @@
NODE_ENV=production
VITE_APP_TITLE='SmartAdmin V3.X'
VITE_APP_API_URL='http://preview.smartadmin.1024lab.net/smart-admin-api'
VITE_APP_API_URL='https://preview.smartadmin.vip/smart-admin-api'

File diff suppressed because it is too large Load Diff

View File

@@ -33,6 +33,6 @@ export const fileApi = {
* 下载文件流根据fileKey @author 胡克
*/
downLoadFile: (fileName, fileKey) => {
return getDownload(fileName, '/support/file/downLoad', { fileKey });
return getDownload('/support/file/downLoad', { fileKey });
},
};

View File

@@ -9,17 +9,17 @@
*
-->
<template>
<div class="container">
<a-image
class="img-prev"
:style="{ display: 'none' }"
:preview="{
visible,
onVisibleChange: setVisible,
}"
:src="previewUrl"
/>
</div>
<div class="container">
<a-image
class="img-prev"
:style="{ display: 'none' }"
:preview="{
visible,
onVisibleChange: setVisible,
}"
:src="previewUrl"
/>
</div>
</template>
<script setup>
@@ -62,7 +62,7 @@
setVisible(true);
return;
}
getDownload(fileItem.fileName, fileItem.fileUrl);
window.open(fileItem.fileUrl);
}
// 判断图片类型

View File

@@ -64,7 +64,7 @@
previewCurrent.value = index;
visible.value = true;
} else {
getDownload(file.fileName, file.fileUrl);
window.open(file.fileUrl);
}
}

View File

@@ -140,7 +140,6 @@
{
title: '文件名称',
dataIndex: 'fileName',
ellipsis: true,
width: 200,
},
{
@@ -152,7 +151,6 @@
{
title: '文件key',
dataIndex: 'fileKey',
ellipsis: true,
},
{
title: '文件类型',
@@ -218,7 +216,7 @@
// 查询数据
function onSearch(){
function onSearch() {
queryForm.pageNum = 1;
queryData();
}