mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-25 07:09:20 +08:00
prettier: 代码格式化
This commit is contained in:
@@ -17,10 +17,10 @@ import { preferences } from '@vben/preferences';
|
||||
import { useAccessStore, useUserStore } from '@vben/stores';
|
||||
import { openWindow } from '@vben/utils';
|
||||
|
||||
import SwitchAccountModal from '#/components/SwitchAccountModal.vue';
|
||||
import { $t } from '#/locales';
|
||||
import { useAuthStore } from '#/store';
|
||||
import LoginForm from '#/views/_core/authentication/login.vue';
|
||||
import SwitchAccountModal from '#/components/SwitchAccountModal.vue';
|
||||
|
||||
const notifications = ref<NotificationItem[]>([
|
||||
{
|
||||
@@ -66,7 +66,7 @@ const switchAccountModalRef = ref();
|
||||
|
||||
const menus = computed(() => {
|
||||
const menuItems = [];
|
||||
|
||||
|
||||
// 只有超级管理员才显示切换账户功能
|
||||
if (accessStore.userRole === 'super') {
|
||||
menuItems.push({
|
||||
@@ -77,7 +77,7 @@ const menus = computed(() => {
|
||||
text: '切换账户',
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
menuItems.push(
|
||||
{
|
||||
handler: () => {
|
||||
@@ -105,9 +105,9 @@ const menus = computed(() => {
|
||||
},
|
||||
icon: CircleHelp,
|
||||
text: $t('ui.widgets.qa'),
|
||||
}
|
||||
},
|
||||
);
|
||||
|
||||
|
||||
return menuItems;
|
||||
});
|
||||
|
||||
@@ -175,7 +175,7 @@ watch(
|
||||
<LockScreen :avatar @to-login="handleLogout" />
|
||||
</template>
|
||||
</BasicLayout>
|
||||
|
||||
|
||||
<!-- 切换账户模态框 -->
|
||||
<SwitchAccountModal ref="switchAccountModalRef" />
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user