fix: 清掉无用接口和样式,并收紧登录与工号边界

This commit is contained in:
2026-11-16 11:30:59 +08:00
parent 7381b49e4c
commit 5b83b7e415
15 changed files with 232 additions and 329 deletions
+3 -5
View File
@@ -1,6 +1,6 @@
<script setup lang="ts">
import { onMounted, ref } from "vue";
import { darkTheme, dateZhCN, NButton, NConfigProvider, NDialogProvider, NMessageProvider, zhCN } from "naive-ui";
import { darkTheme, dateZhCN, NButton, NConfigProvider, NDialogProvider, zhCN } from "naive-ui";
import LoginView from "./features/auth/LoginView.vue";
import Shell from "./shell/Shell.vue";
import AdminShell from "./shell/AdminShell.vue";
@@ -96,8 +96,7 @@ function onLogin(next: AppSession) {
<template>
<n-config-provider class="app-root" :locale="zhCN" :date-locale="dateZhCN" :theme="isDark ? darkTheme : null" :theme-overrides="themeOverrides">
<n-message-provider class="app-root">
<n-dialog-provider>
<n-dialog-provider>
<div v-if="ready && sessionError && !session" class="gate">
<section class="gate-card">
<p class="session-note">暂时无法确认登录状态</p>
@@ -115,7 +114,6 @@ function onLogin(next: AppSession) {
<Shell v-else-if="session.kind === 'user'" :employee-id="session.employeeId" @logout="exitSystem" @revoke="revokeAccount" />
<AdminShell v-else-if="session.kind === 'admin'" :username="session.username" @logout="exitAdmin" @refresh="loadSession" />
</div>
</n-dialog-provider>
</n-message-provider>
</n-dialog-provider>
</n-config-provider>
</template>