mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-11-12 05:33:48 +08:00
v3.0.0 【优化】登录日志回显、版本号改为3.0、文件下载
This commit is contained in:
@@ -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'
|
||||
@@ -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'
|
||||
5933
smart-admin-web/javascript-ant-design-vue3/package-lock.json
generated
Normal file
5933
smart-admin-web/javascript-ant-design-vue3/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -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 });
|
||||
},
|
||||
};
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
// 判断图片类型
|
||||
|
||||
@@ -64,7 +64,7 @@
|
||||
previewCurrent.value = index;
|
||||
visible.value = true;
|
||||
} else {
|
||||
getDownload(file.fileName, file.fileUrl);
|
||||
window.open(file.fileUrl);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user