移除所有内置源

This commit is contained in:
lyswhut
2023-10-18 19:46:05 +08:00
parent 016821a8ce
commit 1ff6a00653
6 changed files with 49 additions and 41 deletions
@@ -84,7 +84,7 @@ export default {
if (!api) return
if (appSetting['common.apiSource'] == api.id) {
let backApi = apiSourceInfo.find(api => !api.disabled)
if (backApi) updateSetting({ 'common.apiSource': backApi.id })
updateSetting({ 'common.apiSource': backApi?.id ?? '' })
}
userApi.list = await removeUserApi([api.id])
},