File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
frontend/src/components/layout Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ const showSysmenu = computed(() => {
3838 {{ collapse ? '' : '返回工作空间' }}
3939 </div >
4040 <div class =" personal-info" >
41- <Person :collapse =" collapse" ></Person >
41+ <Person :collapse =" collapse" :in-sysmenu = " showSysmenu " ></Person >
4242 <el-icon size =" 20" class =" fold" @click =" handleFoldExpand" >
4343 <icon _side_expand_outlined v-if =" collapse" ></icon _side_expand_outlined >
4444 <icon _side_fold_outlined v-else ></icon _side_fold_outlined >
Original file line number Diff line number Diff line change @@ -19,14 +19,15 @@ const pwdFormRef = ref()
1919const { t, locale } = useI18n ()
2020defineProps ({
2121 collapse: { type: [Boolean ], required: true },
22+ inSysmenu: { type: [Boolean ], required: true },
2223})
2324
2425const name = computed (() => userStore .getName )
2526const account = computed (() => userStore .getAccount )
2627const currentLanguage = computed (() => userStore .getLanguage )
2728const isAdmin = computed (() => userStore .getUid === ' 1' )
28- const emit = defineEmits ([' selectPerson' ])
2929const dialogVisible = ref (false )
30+
3031const languageList = [
3132 {
3233 name: ' English' ,
@@ -88,7 +89,7 @@ const logout = () => {
8889 <div class =" top" >{{ name }}</div >
8990 <div class =" bottom" >{{ account }}</div >
9091 </div >
91- <div v-if =" isAdmin" class =" popover-item" @click =" toSystem" >
92+ <div v-if =" isAdmin && !inSysmenu " class =" popover-item" @click =" toSystem" >
9293 <el-icon size =" 16" >
9394 <icon _admin_outlined ></icon _admin_outlined >
9495 </el-icon >
You can’t perform that action at this time.
0 commit comments