登录界面优化
This commit is contained in:
@@ -22,8 +22,8 @@ export const useUserStore = defineStore('user', () => {
|
||||
const currentProject = ref(null)
|
||||
|
||||
// 监听 currentProject 变化,获取菜单权限
|
||||
watch(() => currentProject.value?.ProjectId, (newId) => {
|
||||
if (newId) {
|
||||
watch(() => currentProject.value?.ProjectId, (newId,oldId) => {
|
||||
if (newId!==oldId) {
|
||||
// 项目变化 请求菜单权限
|
||||
const menuStore = useMenuStore()
|
||||
const userId = userInfo.value?.PersonId
|
||||
|
||||
Reference in New Issue
Block a user