prettier: 代码格式化

This commit is contained in:
ah--desktop
2025-10-31 22:42:03 +08:00
parent 91ee49f45f
commit dfc6de49e0
62 changed files with 6814 additions and 5256 deletions
@@ -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>