From baac0b72affa8de4730f52d337f201df50d3fda8 Mon Sep 17 00:00:00 2001 From: liubo <1060247260@qq.com> Date: Sat, 3 Jun 2023 17:40:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=BC=E5=AE=B9=E8=BF=90=E8=90=A5=E5=B9=B3?= =?UTF-8?q?=E5=8F=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/App.vue b/src/App.vue index edd70ab..4e19e64 100644 --- a/src/App.vue +++ b/src/App.vue @@ -26,7 +26,7 @@ export default { }, created() { const props = window.$wujie?.props; - if (props?.platform === "employ") { + if (props?.platform === "employ") { // 驿站后台 const token = { isSelfSupport: 0, access_token: JSON.parse(sessionStorage.getItem("CX_STAGE_USERINFO")) @@ -34,6 +34,14 @@ export default { }; sessionStorage.setItem("CX_Common_UserInfo", JSON.stringify(token)); // this.vipID = JSON.parse(sessionStorage.getItem("userInfo")).id; + } else if (props?.platform === "operation") { // 运营平台 + const token = { + isSelfSupport: 1, + access_token: JSON.parse(sessionStorage.getItem("CX_STAGE_USERINFO")) + .authorization + }; + sessionStorage.setItem("CX_Common_UserInfo", JSON.stringify(token)); + // this.vipID = JSON.parse(sessionStorage.getItem("userInfo")).id; } const { bus } = WujieVue2; // 通知主项目打开关闭