SilenceLeo il y a 3 ans
Parent
commit
e79c748782
1 fichiers modifiés avec 1 ajouts et 2 suppressions
  1. 1 2
      src/pages/index/index.vue

+ 1 - 2
src/pages/index/index.vue

@@ -167,8 +167,7 @@ export default {
   },
   methods: {
     showDialog() {
-      if (!this.userInfo || (this.userInfo && this.userInfo.type === "1"))
-        return;
+      if (this.userInfo && this.userInfo.type === "1") return;
       uni.showModal({
         title: "欢迎来到云果国潮",
         content: "您当前还不是VIP,立即加入享受多种优惠活动!",