隐藏所有提交

This commit is contained in:
xuyue committed 2025-04-13 12:54:12 +08:00
1 parent 5270bf7b11
commit 12d8fb3a6c
3 files changed
+33 -15

No files matched your search

+9 -1
View File
@@ -2,7 +2,15 @@ import { getWebsiteConfig } from "~/oj/api"
import { WebsiteConfig } from "~/utils/types"
export const useConfigStore = defineStore("config", () => {
const config = ref<WebsiteConfig>()
const config = ref<WebsiteConfig>({
website_base_url: "",
website_name: "",
website_name_shortcut: "",
website_footer: "",
submission_list_show_all: true,
allow_register: true,
class_list: [],
})
async function getConfig() {
const res = await getWebsiteConfig()
config.value = res.data