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; // 通知主项目打开关闭