This commit is contained in:
eoao
2025-04-26 17:24:39 +08:00
commit 24ba4772e6
107 changed files with 13612 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
import { defineStore } from 'pinia'
import { settingQuery} from "@/request/setting.js";
export const useSettingStore = defineStore('setting', {
state: () => ({
domainList: [],
settings: {
title: '-'
}
}),
actions: {
async initSetting() {
if (this.domainList.length === 0) {
const data = await settingQuery()
this.domainList.push(...data.domainList)
delete data.domainList
this.settings = data
}
}
}
})