| 12345678910111213141516171819 |
- <script setup>
- import naviInterceptor from '@/interceptors/naviInterceptor.js';
- import { useSafeAreaStore } from '@/stores/safeArea.js';
- import { onLaunch } from '@dcloudio/uni-app';
- import { getSafeArea } from '@/utils/system.js';
-
- onLaunch(() => {
- // 导航拦截器初始化
- naviInterceptor();
- // 安全区初始化
- const safeAreaStore = useSafeAreaStore();
- safeAreaStore.$patch(getSafeArea());
- });
-
- </script>
- <style>
- /*每个页面公共css */
- </style>
|