Ver código fonte

fix: 判断大会员权限

Signed-off-by: tangshizhe <48740614+tangshizhe@users.noreply.github.com>
tangshizhe 4 meses atrás
pai
commit
d03343db12

+ 1 - 1
apps/bigmember_pc/src/views/vipsubscribe/components/Contrast.vue

@@ -264,7 +264,7 @@ export default {
   },
   methods: {
     goBuyMember() {
-      if (this.info && this.info.memberStatus) {
+      if (this.info?.memberStatus && this.info.memberStatus > 0) {
         location.href = '/page_workDesktop/work-bench/app/big/workspace/dashboard'
       }
       else {

+ 1 - 1
apps/mobile/src/views/order/components/vipsubscribe/Introduction.vue

@@ -87,7 +87,7 @@ export default {
     },
     goBuyMember() {
       console.log(this.power, 'power')
-      if (this.power && this.power.memberStatus) {
+      if (this.power?.memberStatus && this.power.memberStatus > 0) {
         this.$router.push('/tabbar/home')
       }
       else {