mirror of
https://github.com/EstrellaXD/Auto_Bangumi.git
synced 2026-11-30 16:15:51 +08:00
fix: setConfig
This commit is contained in:
@@ -8,7 +8,7 @@ export const useConfigStore = defineStore('config', () => {
|
||||
config.value = res;
|
||||
}
|
||||
|
||||
const { execute: setConfig } = useApi(apiConfig.updateConfig, {
|
||||
const { execute: set } = useApi(apiConfig.updateConfig, {
|
||||
showMessage: true,
|
||||
onSuccess() {
|
||||
// 保存 config 后重启,以应用最新配置
|
||||
@@ -17,6 +17,8 @@ export const useConfigStore = defineStore('config', () => {
|
||||
},
|
||||
});
|
||||
|
||||
const setConfig = () => set(config.value);
|
||||
|
||||
function getSettingGroup<Tkey extends keyof Config>(key: Tkey) {
|
||||
return computed<Config[Tkey]>({
|
||||
get() {
|
||||
|
||||
Reference in New Issue
Block a user