flat: init

This commit is contained in:
史典卓
2024-11-08 11:55:23 +08:00
commit 0e64009a8a
80 changed files with 10529 additions and 0 deletions

26
App.vue Normal file
View File

@@ -0,0 +1,26 @@
<script setup>
import useUserStore from './stores/useUserStore';
import { onLaunch, onShow, onHide } from '@dcloudio/uni-app';
const userStore = useUserStore();
onLaunch(() => {
console.log('App Launch');
let openId = uni.getStorageSync('openId') || ''; // 同步获取 缓存信息
if (openId) {
console.log('有openid');
} else {
console.log('没有openid');
}
});
onShow(() => {
console.log('App Show');
});
onHide(() => {
console.log('App Hide');
});
</script>
<style>
/*每个页面公共css */
@import '@/common/common.css';
</style>