Skip to content

Commit b22111a

Browse files
perf: System ui
1 parent 7586700 commit b22111a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

frontend/src/components/layout/LayoutDsl.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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>

frontend/src/components/layout/Person.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,15 @@ const pwdFormRef = ref()
1919
const { t, locale } = useI18n()
2020
defineProps({
2121
collapse: { type: [Boolean], required: true },
22+
inSysmenu: { type: [Boolean], required: true },
2223
})
2324
2425
const name = computed(() => userStore.getName)
2526
const account = computed(() => userStore.getAccount)
2627
const currentLanguage = computed(() => userStore.getLanguage)
2728
const isAdmin = computed(() => userStore.getUid === '1')
28-
const emit = defineEmits(['selectPerson'])
2929
const dialogVisible = ref(false)
30+
3031
const 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>

0 commit comments

Comments
 (0)