|
@@ -5,9 +5,8 @@
|
|
|
</keep-alive>
|
|
</keep-alive>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
-
|
|
|
|
|
|
|
+<script src="../../public/mui.js"></script>
|
|
|
<script>
|
|
<script>
|
|
|
- import mui from '../libs/mui'
|
|
|
|
|
import {
|
|
import {
|
|
|
getCheckUpdate,
|
|
getCheckUpdate,
|
|
|
getUserList
|
|
getUserList
|
|
@@ -33,6 +32,8 @@
|
|
|
},
|
|
},
|
|
|
mounted() {
|
|
mounted() {
|
|
|
this.getCurVersion();
|
|
this.getCurVersion();
|
|
|
|
|
+ console.log(window.plus);
|
|
|
|
|
+ console.log(window);
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
// 获取当前版本号
|
|
// 获取当前版本号
|
|
@@ -45,11 +46,10 @@
|
|
|
localStorage.version = inf.version;
|
|
localStorage.version = inf.version;
|
|
|
that.curVersion = inf.version;
|
|
that.curVersion = inf.version;
|
|
|
});
|
|
});
|
|
|
|
|
+ that.checkUpdate();
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
if (window.plus) {
|
|
if (window.plus) {
|
|
|
plusReady();
|
|
plusReady();
|
|
|
- this.checkUpdate();
|
|
|
|
|
} else {
|
|
} else {
|
|
|
console.log('mui is not ready');
|
|
console.log('mui is not ready');
|
|
|
document.addEventListener('plusready', plusReady, false);
|
|
document.addEventListener('plusready', plusReady, false);
|