From 209f42fead48186717e3fb455953c625a1e42ba7 Mon Sep 17 00:00:00 2001 From: joylink_fanyuhong <18706759286@163.com> Date: Fri, 11 Oct 2024 17:08:21 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=96=E6=B6=88=E6=8B=A6=E6=88=AA=E5=99=A8?= =?UTF-8?q?=E6=97=A0=E6=9D=83=E9=99=90=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rts-sim-testing-message | 2 +- src/boot/axios.ts | 36 ++++++++++++++++++------------------ 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/rts-sim-testing-message b/rts-sim-testing-message index 7629f29..5b0baec 160000 --- a/rts-sim-testing-message +++ b/rts-sim-testing-message @@ -1 +1 @@ -Subproject commit 7629f290ea612d4ce368c40d4cf793dffc4b21ec +Subproject commit 5b0baec461fba33bcb76212ce2b1a19d1b79057f diff --git a/src/boot/axios.ts b/src/boot/axios.ts index ef4b92f..6c601ce 100644 --- a/src/boot/axios.ts +++ b/src/boot/axios.ts @@ -67,7 +67,7 @@ export class ApiError { // for each client) const api = axios.create({ baseURL: getHttpBase() }); let isOpenDialog = false; // 认证弹窗是否打开 -let quanXianDialog = false; // 权限提示弹窗是否打开 +const quanXianDialog = false; // 权限提示弹窗是否打开 const CancelToken = axios.CancelToken; const source = CancelToken.source(); @@ -108,23 +108,23 @@ export default boot(({ app, router }) => { .onCancel(() => { isOpenDialog = false; }); - } else if ( - err.response && - err.response.status === 403 && - !quanXianDialog - ) { - quanXianDialog = true; - Dialog.create({ - title: '无权限', - message: '你没有该页面访问权限', - persistent: true, - }) - .onOk(() => { - quanXianDialog = false; - }) - .onCancel(() => { - quanXianDialog = false; - }); + // } else if ( + // err.response && + // err.response.status === 403 && + // !quanXianDialog + // ) { + // quanXianDialog = true; + // Dialog.create({ + // title: '无权限', + // message: '你没有该页面访问权限', + // persistent: true, + // }) + // .onOk(() => { + // quanXianDialog = false; + // }) + // .onCancel(() => { + // quanXianDialog = false; + // }); } return Promise.reject(ApiError.from(err)); }