flat: 页面初始化
This commit is contained in:
7
App.vue
7
App.vue
@@ -5,7 +5,12 @@ const userStore = useUserStore();
|
||||
onLaunch(() => {
|
||||
console.log('App Launch');
|
||||
let openId = uni.getStorageSync('openId') || ''; // 同步获取 缓存信息
|
||||
|
||||
uni.onTabBarMidButtonTap(() => {
|
||||
console.log(123);
|
||||
uni.navigateTo({
|
||||
url: '/pages/login/login',
|
||||
});
|
||||
});
|
||||
if (openId) {
|
||||
console.log('有openid');
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user