fix: 清掉无用接口和样式,并收紧登录与工号边界
This commit is contained in:
+3
-5
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user