diff --git a/package.json b/package.json index 205dd41..3357c5d 100644 --- a/package.json +++ b/package.json @@ -48,7 +48,7 @@ "js-beautify": "1.13.0", "js-cookie": "3.0.1", "jsencrypt": "3.0.0-rc.1", - "moment": "^2.24.0", + "moment": "^2.29.4", "nprogress": "0.2.0", "postcss-px2rem": "^0.3.0", "quill": "^1.3.6", diff --git a/src/layout/newyjLayout.vue b/src/layout/newyjLayout.vue index f25d4de..e972999 100644 --- a/src/layout/newyjLayout.vue +++ b/src/layout/newyjLayout.vue @@ -111,15 +111,16 @@ export default { }, //退出登录 logout() { + this.$confirm("确定注销并退出系统吗?", "提示", { confirmButtonText: "确定", cancelButtonText: "取消", type: "warning", }) .then(() => { - this.$store.dispatch("LogOut").then(() => { + // this.$store.dispatch("LogOut").then(() => { this.$router.replace("/toLogin").catch(() => {}); - }); + // }); }) .catch(() => {}); }, diff --git a/src/utils/request.js b/src/utils/request.js index 14858ad..9c466db 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -17,7 +17,7 @@ const service = axios.create({ // axios中请求配置有baseURL选项,表示请求URL公共部分 baseURL: process.env.VUE_APP_BASE_API, // 超时 - timeout: 10000, + timeout: 100000, }); // request拦截器 diff --git a/src/views/yingji/enforcing.vue b/src/views/yingji/enforcing.vue index 251d401..ee340b6 100644 --- a/src/views/yingji/enforcing.vue +++ b/src/views/yingji/enforcing.vue @@ -37,9 +37,9 @@
- - - + 全部 + 已检查 + 未检查
@@ -83,8 +83,16 @@ header-align="center" > - + + +