xiongzhu 4 лет назад
Родитель
Сommit
efef329f3f
1 измененных файлов с 18 добавлено и 16 удалено
  1. 18 16
      src/main.js

+ 18 - 16
src/main.js

@@ -136,24 +136,26 @@ if (navigator.userAgent.includes('#cordova#')) {
             );
 
             if (!(location.host === 'www.raex.vip' || location.host === 'test.raex.vip')) {
-                window.$vm.$dialog
-                    .alert({
-                        message: '检测到新版本,请下载更新',
-                        beforeClose(action, done) {
-                            if (action === 'confirm') {
-                                setTimeout(done, 1000);
+                if (!/iphone|ipad|ipod/.test(navigator.userAgent)) {
+                    window.$vm.$dialog
+                        .alert({
+                            message: '检测到新版本,请下载更新',
+                            beforeClose(action, done) {
+                                if (action === 'confirm') {
+                                    setTimeout(done, 1000);
+                                } else {
+                                    done();
+                                }
+                            }
+                        })
+                        .then(() => {
+                            if (/iphone|ipad|ipod/.test(navigator.userAgent)) {
+                                //location.href = 'https://apps.apple.com/cn/app/id1598469798';
                             } else {
-                                done();
+                                location.href = 'http://download.raex.vip';
                             }
-                        }
-                    })
-                    .then(() => {
-                        if (/iphone|ipad|ipod/.test(navigator.userAgent)) {
-                            //location.href = 'https://apps.apple.com/cn/app/id1598469798';
-                        } else {
-                            location.href = 'http://download.raex.vip';
-                        }
-                    });
+                        });
+                }
             }
 
             if (