霸王餐更改
This commit is contained in:
27
App.vue
27
App.vue
@@ -6,7 +6,8 @@
|
||||
APIgeocodelocation
|
||||
} from "@/common/api/api.js"
|
||||
import {
|
||||
onLaunch
|
||||
onLaunch,
|
||||
onShow
|
||||
} from '@dcloudio/uni-app';
|
||||
import {
|
||||
getCurrentInstance
|
||||
@@ -22,23 +23,25 @@
|
||||
// 标记应用启动完成
|
||||
const store = useNavbarStore();
|
||||
await store.initNavbarHeight();
|
||||
// #ifndef H5
|
||||
// try {
|
||||
const storelogin = Storelogin();
|
||||
await storelogin.actionslogin()
|
||||
proxy.$isResolve()
|
||||
// } catch (error) {
|
||||
// proxy.$isResolve()
|
||||
// console.log(error)
|
||||
// }
|
||||
// #endif
|
||||
|
||||
});
|
||||
// export default {
|
||||
// onLaunch: async function() {
|
||||
|
||||
|
||||
// },
|
||||
// onShow: function() {},
|
||||
onShow(async () => {
|
||||
// #ifndef H5
|
||||
// try {
|
||||
const storelogin = Storelogin();
|
||||
await storelogin.actionslogin()
|
||||
proxy.$isResolve()
|
||||
// } catch (error) {
|
||||
// proxy.$isResolve()
|
||||
// console.log(error)
|
||||
// }
|
||||
// #endif
|
||||
})
|
||||
// onHide: function() {}
|
||||
// }
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user