Skip to content

Commit

Permalink
feat✨: 新增系统检查
Browse files Browse the repository at this point in the history
  • Loading branch information
abulo committed Jun 26, 2024
1 parent d33fec7 commit 86a20e8
Show file tree
Hide file tree
Showing 23 changed files with 1,797 additions and 103 deletions.
10 changes: 6 additions & 4 deletions admin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"@wangeditor/editor": "^5.1.23",
"@wangeditor/editor-for-vue": "^5.1.12",
"axios": "^1.7.2",
"date-fns": "^3.6.0",
"dayjs": "^1.11.11",
"driver.js": "^1.3.1",
"echarts": "^5.5.0",
Expand All @@ -62,9 +63,10 @@
"vue": "^3.4.30",
"vue-i18n": "^9.13.1",
"vue-router": "^4.4.0",
"vue-types": "^5.1.2",
"vuedraggable": "^4.1.0",
"vxe-pc-ui": "^4.0.30",
"vxe-table": "^4.7.32",
"vxe-pc-ui": "^4.0.36",
"vxe-table": "^4.7.36",
"vxe-table-plugin-element": "^4.0.4"
},
"devDependencies": {
Expand All @@ -74,8 +76,8 @@
"@types/nprogress": "^0.2.3",
"@types/qs": "^6.9.15",
"@types/sortablejs": "^1.15.8",
"@typescript-eslint/eslint-plugin": "^7.13.1",
"@typescript-eslint/parser": "^7.13.1",
"@typescript-eslint/eslint-plugin": "^7.14.1",
"@typescript-eslint/parser": "^7.14.1",
"@vitejs/plugin-vue": "^5.0.5",
"@vitejs/plugin-vue-jsx": "^4.0.0",
"autoprefixer": "^10.4.19",
Expand Down
148 changes: 87 additions & 61 deletions admin/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 12 additions & 12 deletions admin/src/api/helper/checkStatus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,18 @@ export const checkStatus = (status: number) => {
break;
case 401:
ElMessage.error("登录失效!请您重新登录");
// ElMessageBox.confirm("登录失效!请您重新登录", "系统提示", {
// showCancelButton: false,
// closeOnClickModal: false,
// showClose: false,
// confirmButtonText: "重新登录",
// type: "warning"
// }).then(() => {
// const userStore = useUserStore();
// userStore.setToken("");
// router.replace(LOGIN_URL);
// });
// break;
// ElMessageBox.confirm("登录失效!请您重新登录", "系统提示", {
// showCancelButton: false,
// closeOnClickModal: false,
// showClose: false,
// confirmButtonText: "重新登录",
// type: "warning"
// }).then(() => {
// const userStore = useUserStore();
// userStore.setToken("");
// router.replace(LOGIN_URL);
// });
break;
case 403:
ElMessage.error("当前账号无权限访问!");
break;
Expand Down
2 changes: 1 addition & 1 deletion admin/src/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class RequestHttp {
config.loading ?? (config.loading = true);
config.loading && showFullScreenLoading();
if (config.headers && typeof config.headers.set === "function") {
config.headers.set("x-access-token", userStore.token);
config.headers.set("X-Access-Token", userStore.token);
}
return config;
},
Expand Down
Loading

0 comments on commit 86a20e8

Please sign in to comment.