From 856e7ac04edd98e79cc969af262db0b508b76139 Mon Sep 17 00:00:00 2001 From: zhouwenxuan <1175765986@qq.com> Date: 星期五, 04 八月 2023 15:50:48 +0800 Subject: [PATCH] 文件预览 --- pages/tabBar/firstPage/firstPage.vue | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pages/tabBar/firstPage/firstPage.vue b/pages/tabBar/firstPage/firstPage.vue index 8bc7e1a..5bc44b0 100644 --- a/pages/tabBar/firstPage/firstPage.vue +++ b/pages/tabBar/firstPage/firstPage.vue @@ -71,6 +71,7 @@ reviewStatus: null//1:未审核,2:已审核,3:审核已驳回 } }, + role: '' } }, @@ -78,11 +79,12 @@ //获取手机状态栏高度 this.statusBarHeight = uni.getSystemInfoSync()['statusBarHeight']; uni.hideTabBar(); - this.role = uni.getStorageSync('roleName'); - console.log("role",this.role) + }, onShow(){ + this.role = uni.getStorageSync('roleName'); + console.log("role",this.role) this.getNum(); }, methods: { -- Gitblit v1.9.2