From 7dda263a52fbaba3dc1651df877069e154eec0bd Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Fri, 8 Mar 2024 16:09:12 +0800 Subject: [PATCH] fix --- src/setting.js | 2 +- vue.config.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/setting.js b/src/setting.js index c8709bd..c4eadf8 100644 --- a/src/setting.js +++ b/src/setting.js @@ -17,7 +17,7 @@ const Setting = { routerMode: "hash", // 路由模式,可选值为 history 或 hash showProgressBar: true, // 页面切换时,是否显示模拟的进度条 apiBaseURL: host, // 接口请求地址 - autoLogoutTime: 3600000, // 长时间未操作,自动退出登录时间 + autoLogoutTime: 1000 * 60 * 60 * 3, // 长时间未操作,自动退出登录时间 modalDuration: 3, // 接口请求返回错误时,弹窗的持续时间,单位:秒 errorModalType: "Message", // 接口请求返回错误时,弹窗的类型,可选值为 Message 或 Notice tokenExpires: 1296000000, // token在localStorage的时间(毫秒) diff --git a/vue.config.js b/vue.config.js index d9356b3..eab15d3 100644 --- a/vue.config.js +++ b/vue.config.js @@ -15,5 +15,6 @@ module.exports = { assetsDir: Setting.assetsDir, devServer: { port: 8096 // 固定端口 - } + }, + productionSourceMap: false, } \ No newline at end of file