update
Some checks failed
Deploy / deploy (build, debian, 22) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822) (push) Has been cancelled

This commit is contained in:
2026-04-01 06:18:19 -06:00
parent b4c73411d6
commit 74bdef2236
4 changed files with 101 additions and 14 deletions

View File

@@ -1,5 +1,6 @@
<script setup lang="ts">
import { dateZhCN, zhCN } from "naive-ui"
import type { GlobalThemeOverrides } from "naive-ui"
import Login from "./components/Login.vue"
import { onMounted, watch } from "vue"
import { Account } from "./api"
@@ -7,6 +8,16 @@ import { authed, user } from "./store/user"
import { STORAGE_KEY } from "./utils/const"
import hljs from "highlight.js/lib/core"
const themeOverrides: GlobalThemeOverrides = {
common: {
borderRadius: "6px",
borderRadiusSmall: "4px",
},
Card: {
borderRadius: "8px",
},
}
onMounted(async () => {
try {
const data = await Account.getMyProfile()
@@ -33,6 +44,7 @@ watch(authed, (v) => {
:locale="zhCN"
:date-locale="dateZhCN"
:hljs="hljs"
:theme-overrides="themeOverrides"
>
<n-modal-provider>
<n-message-provider :max="1">