wangxy 1 tháng trước cách đây
mục cha
commit
611eb43915
1 tập tin đã thay đổi với 8 bổ sung9 xóa
  1. 8 9
      pages/study/index.vue

+ 8 - 9
pages/study/index.vue

@@ -190,9 +190,6 @@
           storeWebUrl = `https://appgallery.huawei.com/app/C113217527`;
           break;
         default:
-          // 直接下载apk
-          initDownload(updateUrl.value)
-          resa = true;
           break;
       }
       if (!resa) {
@@ -200,12 +197,14 @@
           console.log('调起应用商店失败,尝试网页链接', error);
           plus.runtime.openURL(storeWebUrl, (webError) => {
             console.error('网页链接失败', webError);
-            plus.runtime.openURL(updateUrl.value, (webError) => {
-              uni.showToast({
-                title: '跳转失败,请手动打开应用商店搜索更新',
-                icon: 'none'
-              });
-            });
+            // 直接下载apk
+            initDownload(updateUrl.value)
+            // plus.runtime.openURL(updateUrl.value, (webError) => {
+            //   uni.showToast({
+            //     title: '跳转失败,请手动打开应用商店搜索更新',
+            //     icon: 'none'
+            //   });
+            // });
           });
         });
       }