shjn
This commit is contained in:
1 parent
fd068aeaf2
commit
d0621ba995
2 files changed
+12
-5
No files matched your search
@@ -1,5 +1,6 @@
|
||||
# H5:true 时在页面加载 vConsole(浙政钉内可看 Network/Log);稳定上线后改为 false
|
||||
VITE_VCONSOLE=true
|
||||
#VITE_VCONSOLE=true
|
||||
VITE_VCONSOLE=false
|
||||
|
||||
#是否是TOC应用
|
||||
VITE_IS_TOC=true
|
||||
|
||||
+10
-4
@@ -1,8 +1,8 @@
|
||||
<template>
|
||||
<crud-layout mainIsScroll bg="/static/page/blue-bg.png">
|
||||
<template #main-top>
|
||||
<view class="flex items-center py-3 px-5" @tap="doUserArea">
|
||||
<view class="flex items-center" v-if="state.userInfo?.sysUser?.userId">
|
||||
<view class="flex items-center py-3 px-5">
|
||||
<view class="flex items-center" v-if="state.userInfo?.sysUser?.userId" @tap="doUserArea">
|
||||
<image v-if="state.userInfo?.sysUser?.avatar" class="size-100rpx rounded-full"
|
||||
:src="filePath(state.userInfo.sysUser.avatar)" mode="aspectFill" />
|
||||
<image v-else class="w-100rpx h-100rpx rounded-full" src="/static/icon/default-avatar.png"
|
||||
@@ -115,6 +115,7 @@ const STORAGE_KEYS = {
|
||||
}
|
||||
|
||||
const doUserArea = () => {
|
||||
if (!state.userInfo?.sysUser?.userId) return
|
||||
modifyUserRef.value?.open()
|
||||
}
|
||||
|
||||
@@ -158,7 +159,7 @@ const storage = {
|
||||
if (res.confirm) {
|
||||
uni.clearStorageSync()
|
||||
state.userInfo = {}
|
||||
uni.reLaunch({ url: "/pages/tabbar/my" })
|
||||
uni.reLaunch({ url: "/pages/tabbar/my?reauth=1" })
|
||||
}
|
||||
},
|
||||
})
|
||||
@@ -379,7 +380,7 @@ const initMenuConfig = () => {
|
||||
}
|
||||
}
|
||||
|
||||
onLoad(async () => {
|
||||
onLoad(async (options: Record<string, string | undefined>) => {
|
||||
const app = getApp()
|
||||
app._initTabbar()
|
||||
|
||||
@@ -396,6 +397,11 @@ onLoad(async () => {
|
||||
|
||||
// 获取存储中的用户信息
|
||||
storage.getUserInfo()
|
||||
|
||||
if (options?.reauth === "1") {
|
||||
await login.checkAppInfo()
|
||||
storage.getUserInfo()
|
||||
}
|
||||
})
|
||||
|
||||
const isMallMchUser = async () => {
|
||||
|
||||
Reference in new issue
Block a user