feat(后台设置): 设置页重排成网站、班级、开关、判题机几块,保存挪到右上角;班级按年级分组不用再拖;判题机写出多久没动静;AI 小助手(MaxKB 挂件)整个删掉
Deploy / deploy (push) Canceled after 0s
Deploy / deploy (push) Canceled after 0s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
20a6f667d8
commit
0ee5444ede
10 files changed
+304
-273
No files matched your search
@@ -3,17 +3,10 @@ import type { WebsiteConfig } from "utils/types"
|
||||
|
||||
export const useConfigStore = defineStore("config", () => {
|
||||
const config = ref<WebsiteConfig>({
|
||||
websiteBaseUrl: "",
|
||||
websiteName: "",
|
||||
websiteNameShortcut: "",
|
||||
websiteFooter: "",
|
||||
submissionListShowAll: true,
|
||||
allowRegister: false,
|
||||
classList: [],
|
||||
// 默认 false:这是给 useMaxKB 用的开关,而 MaxKB 是第三方脚本。
|
||||
// 默认 true 的话,getConfig() 还没回来挂件就已经加载执行了,服务端配置说
|
||||
// 「关」也只能事后删标签,等于开关失效。宁可晚一个来回出现,也不要关不掉。
|
||||
enableMaxkb: false,
|
||||
})
|
||||
async function getConfig() {
|
||||
const res = await getWebsiteConfig()
|
||||
|
||||
Reference in new issue
Block a user