@@ -209,19 +209,21 @@ function setLayout() {
flex-direction: column;
.header-tool {
- padding-top: 5px;
-webkit-app-region: no-drag;
-
span {
border-radius: 3px;
cursor: pointer;
-
+ padding: 2px 10px;
&:hover {
background-color: #c4c4c4;
}
-
- .iconfont {
- margin: 0 10px;
+ }
+ .close{
+ &:hover{
+ background-color: #fb4a3e;
+ .iconfont{
+ color: #fff;
+ }
}
}
}
diff --git a/src/renderer/src/utils/request.js b/src/renderer/src/utils/request.js
index 6cfd1fc..4cf8f15 100644
--- a/src/renderer/src/utils/request.js
+++ b/src/renderer/src/utils/request.js
@@ -55,7 +55,7 @@ service.interceptors.request.use(config => {
const s_url = sessionObj.url; // 请求地址
const s_data = sessionObj.data; // 请求数据
const s_time = sessionObj.time; // 请求时间
- const interval = 1000; // 间隔时间(ms),小于此时间视为重复提交
+ const interval = 2000; // 间隔时间(ms),小于此时间视为重复提交
if (s_data === requestObj.data && requestObj.time - s_time < interval && s_url === requestObj.url) {
const message = '数据正在处理,请勿重复提交';
console.warn(`[${s_url}]: ` + message)
From effe6c32727a674bfef5378052f9a5731294280f Mon Sep 17 00:00:00 2001
From: lyc
Date: Thu, 18 Jul 2024 15:14:11 +0800
Subject: [PATCH 3/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=80=E4=BA=9B?=
=?UTF-8?q?=E6=89=93=E5=8C=85=E7=9A=84=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.env.production | 15 +++++++++++++++
electron-builder.yml | 4 ++--
src/renderer/src/components/move-file/index.vue | 2 +-
.../src/components/select-subject/index.vue | 2 +-
.../src/components/upload-dialog/index.vue | 2 +-
src/renderer/src/layout/components/Header.vue | 4 ++--
src/renderer/src/utils/auth.js | 6 +++---
7 files changed, 25 insertions(+), 10 deletions(-)
create mode 100644 .env.production
diff --git a/.env.production b/.env.production
new file mode 100644
index 0000000..5929a05
--- /dev/null
+++ b/.env.production
@@ -0,0 +1,15 @@
+# 页面标题
+VITE_APP_TITLE = AIx数字平台
+
+# 生产环境配置
+VITE_APP_ENV = 'production'
+
+# AIx融合数字管理系统/生产环境
+VITE_APP_BASE_API = 'http://192.168.2.52:7863'
+
+# 是否在打包时开启压缩,支持 gzip 和 brotli
+VITE_BUILD_COMPRESS = gzip
+
+VITE_APP_RES_FILE_PATH = 'https://prev.ysaix.com:7868/src/assets/textbook/booktxt/'
+
+VITE_APP_BUILD_BASE_PATH = 'https://prev.ysaix.com:7868/'
\ No newline at end of file
diff --git a/electron-builder.yml b/electron-builder.yml
index 5c1d02b..52741c5 100644
--- a/electron-builder.yml
+++ b/electron-builder.yml
@@ -1,5 +1,5 @@
appId: com.electron.app
-productName: electron-app
+productName: AIx
directories:
buildResources: build
files:
@@ -11,7 +11,7 @@ files:
asarUnpack:
- resources/**
win:
- executableName: electron-app
+ executableName: AIx
nsis:
oneClick: false
allowToChangeInstallationDirectory: true
diff --git a/src/renderer/src/components/move-file/index.vue b/src/renderer/src/components/move-file/index.vue
index 71c7837..79926df 100644
--- a/src/renderer/src/components/move-file/index.vue
+++ b/src/renderer/src/components/move-file/index.vue
@@ -54,7 +54,7 @@