From aae818d9c84f62bee590c1fb8b2c0c590db68414 Mon Sep 17 00:00:00 2001 From: jiayu Date: Mon, 30 Sep 2024 09:12:09 +0800 Subject: [PATCH] =?UTF-8?q?userId=E5=85=8D=E7=99=BB=E5=BD=95=20sn=E5=AD=98?= =?UTF-8?q?=E5=82=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/sevenLargeScreen/indexL.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/views/sevenLargeScreen/indexL.vue b/src/views/sevenLargeScreen/indexL.vue index 76e5a49..5d2171b 100644 --- a/src/views/sevenLargeScreen/indexL.vue +++ b/src/views/sevenLargeScreen/indexL.vue @@ -524,10 +524,13 @@ onMounted(async () => { if (window.location.href.indexOf("userId") != -1) { console.log("免登录跳转进来了吗----", window.location.href.indexOf("userId")); const newUserId = window.location.href.split("userId=")[1].split("&")[0]; + const projectSn = window.location.href.split("sn=")[1].split("&")[0]; const data: any = await jumpLargeByUserIdApi({ userId: newUserId }); console.log("跳转请求的数据----", data.result); if (data.result.sn) { - store.setSN(data.result.sn); + const accountTypeList = [2, 3, 4, 7]; + const sn = accountTypeList.includes(data.result.accountType) ? projectSn : data.result.sn; + store.setSN(sn); } store.setToken(data.result.token); store.setAccount(data.result.account);