隐藏所有提交
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user