|
|
@@ -29,7 +29,7 @@ store.commit('setFirstUrl', location.href);
|
|
|
|
|
|
import ImgContent from './components/ImgContent.vue';
|
|
|
|
|
|
-createApp(App)
|
|
|
+const app = createApp(App)
|
|
|
.use(Vant)
|
|
|
.use(http)
|
|
|
.use(colors)
|
|
|
@@ -43,8 +43,7 @@ createApp(App)
|
|
|
.component('van-image', ImgContent)
|
|
|
.component('page-bar', PageBar)
|
|
|
.use(store)
|
|
|
- .use(router)
|
|
|
- .mount('#app');
|
|
|
+ .use(router);
|
|
|
|
|
|
let query = queryString.parse(location.search);
|
|
|
if (query.code) {
|
|
|
@@ -63,6 +62,8 @@ if (window.cordova) {
|
|
|
document.addEventListener(
|
|
|
'deviceready',
|
|
|
function () {
|
|
|
+ StatusBar.hide();
|
|
|
+ app.mount('#app');
|
|
|
setTimeout(() => {
|
|
|
navigator.splashscreen.hide();
|
|
|
if (window.cordova) {
|
|
|
@@ -122,4 +123,6 @@ if (window.cordova) {
|
|
|
},
|
|
|
false
|
|
|
);
|
|
|
+} else {
|
|
|
+ app.mount('#app');
|
|
|
}
|