Selaa lähdekoodia

fix(index): 添加渠道权限限制提示

- 在跳转逻辑中增加对channelId为58用户的权限校验
- 对非'xsb-homeTabbar'页面访问显示无权限提示
- 阻止无权限用户访问相关页面
- 保持原有点击跳转流程不变
zhangtao 2 päivää sitten
vanhempi
commit
7c5f9d181c
1 muutettua tiedostoa jossa 4 lisäystä ja 0 poistoa
  1. 4 0
      src/pages/index/index.vue

+ 4 - 0
src/pages/index/index.vue

@@ -81,6 +81,10 @@ function handleClick(name: string) {
     show({ msg: '敬请期待 !' })
     return
   }
+  if (userInfo.value.channelId === 58 && name !== 'xsb-homeTabbar') {
+    show({ msg: '您所属的企业暂无权限查看 !' })
+    return
+  }
   router.push({ name })
 }
 onShareAppMessage(() => {