shuishen
2025-10-11 3fc27febccd04e2fcffbd2cdd16d2daafd0b3ca3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<!--
 * @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>