From 7694dfe7bfbd6981d3d7d40150b87f98557a18fb Mon Sep 17 00:00:00 2001 From: danshihao Date: Mon, 22 Jul 2024 16:16:37 +0800 Subject: [PATCH] =?UTF-8?q?[update=20=E5=8D=95=E7=82=B9=E7=99=BB=E5=BD=95]?= =?UTF-8?q?=20=E6=B5=8B=E8=AF=95=E9=A3=9E=E4=B9=A6=E5=8D=95=E7=82=B9?= =?UTF-8?q?=E7=99=BB=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/permission.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/permission.js b/src/permission.js index 85a0eef..2838878 100644 --- a/src/permission.js +++ b/src/permission.js @@ -37,9 +37,11 @@ router.beforeEach(async (to, from, next) => { } } else if (!Vue.ls.get(ACCESS_TOKEN) && to.query.code && to.query.state === 'feishu') { // 如果没有登录,state是飞书,并且有code,就请求飞书单点登录 - store.dispatch('FeiShuLogin').catch((e) => { + store.dispatch('FeiShuLogin', to.query.code).catch((e) => { this.$message.warn(e.message) }) + // 必须切断执行 + return } else if (to.query.code) { // 研发大前台单点登录 const { result, success, message } = await getSSOUserInfo({ code: to.query.code })