From 16f621c4bec6a5d2d20d2d4f561f8885fcebea70 Mon Sep 17 00:00:00 2001 From: liubo <1060247260@qq.com> Date: Mon, 5 Jun 2023 10:16:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=84=E7=AB=AF=E6=9D=83=E9=99=90=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/App.vue b/src/App.vue index d0c540a..1d74047 100644 --- a/src/App.vue +++ b/src/App.vue @@ -26,17 +26,19 @@ export default { }, created() { const props = window.$wujie?.props; - if (props?.platform === "employ") { // 驿站后台 + if (props?.platform === "employ") { + // 驿站后台 const token = { - isSelfSupport: 0, + 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; - } else if (props?.platform === "front") { // 运营平台 + } else if (props?.platform === "front") { + // 运营平台 const token = { - isSelfSupport: 1, + isSelfSupport: 0, // 无编辑权限 access_token: JSON.parse(sessionStorage.getItem("CX_STAGE_USERINFO")) .authorization }; @@ -59,7 +61,7 @@ export default { // 2. 因为这个组件可能要复用在创薪运营平台、运营平台、驿站端、企业端,不同的端需要不同方式的处理 // 3. 如果要把相关数据存进session 中,需要做字段重名区分 // 4. 需要同步获取数据之后再去调用visible = true - // 5. 组件其中isSelfSuppput 字段是自营字段,但同时也是判断是否可以修改字段 + // 5. 组件其中 isSelfSupport 字段是自营字段,但同时也是判断是否可以修改字段 // 6. 关闭弹窗的时候把visible 改为false asyncOpenUserInfo() { this.$refs.userInfoModal.showDrawer();