<!--
|
* @Author : yuan
|
* @Date : 2025-09-28 09:31:16
|
* @LastEditors : yuan
|
* @LastEditTime : 2025-09-28 10:07:55
|
* @FilePath : \src\App.vue
|
* @Description :
|
* Copyright 2025 OBKoro1, All Rights Reserved.
|
* 2025-09-28 09:31:16
|
-->
|
<script setup>
|
import { onHide, onLaunch, onShow } from "@dcloudio/uni-app";
|
import { useAppStore } from "@/store";
|
import {mpUpdate} from "@/utils/index";
|
|
const appStore = useAppStore();
|
onLaunch(() => {
|
console.log("App Launch");
|
|
// 初始化系统信息
|
appStore.initSystemInfo();
|
|
// #ifdef MP-WEIXIN
|
mpUpdate();
|
// #endif
|
});
|
|
onShow(() => {
|
console.log("App Show");
|
});
|
|
onHide(() => {
|
console.log("App Hide");
|
});
|
</script>
|
|
<style lang="scss">
|
/* 每个页面公共css */
|
@import "uview-plus/index.scss";
|
@import "@/static/styles/common.scss";
|
</style>
|