cashier_wx/App.vue

51 lines
1004 B
Vue

<script setup>
import {
useNavbarStore
} from '@/stores/navbarStore';
import {
APIgeocodelocation
} from "@/common/api/api.js"
import {
onLaunch
} from '@dcloudio/uni-app';
import {
getCurrentInstance
} from 'vue';
import {
Storelogin
} from '@/stores/user.js';
const {
proxy
} = getCurrentInstance()
// 小程序启动时执行
onLaunch(async () => {
// 标记应用启动完成
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() {},
// onHide: function() {}
// }
</script>
<style lang="scss">
/*每个页面公共css */
@import "@/uni_modules/uview-plus/index.scss";
@import '@/common/css/flex.css';
@import "@/common/css/common.css";
</style>