فهرست منبع

feat:downloadzip_vip

ananzhusen 1 سال پیش
والد
کامیت
8a454971e7
1فایلهای تغییر یافته به همراه6 افزوده شده و 6 حذف شده
  1. 6 6
      src/views/components/Header.vue

+ 6 - 6
src/views/components/Header.vue

@@ -35,7 +35,7 @@
           <a @click="downloadZip">
             <div class="flex">
               导出为ZIP文件 <span class="flex-grow"></span>
-              <span><label></label></span>
+              <span><label>VIP</label></span>
             </div>
           </a>
         </t-dropdown-item>
@@ -927,15 +927,15 @@ const downloadZip = async () => {
   //   // gotoAccount();
   //   return;
   // }
-  // if (!user.vip) {
-  //   MessagePlugin.info('需要开通普通会员~');
-  //   gotoAccount();
-  //   return;
-  // }
   if(!meta2d.store.data.pens.length){
     MessagePlugin.info('画布没有画笔!');
     return;
   }
+  if (!user.vip) {
+    MessagePlugin.info('需要开通会员~');
+    gotoAccount();
+    return;
+  }
   preDownloadZip();
   return;
   MessagePlugin.info('正在下载打包中,可能需要几分钟,请耐心等待...');