升级版本并改用内部账号存储
This commit is contained in:
@@ -21,7 +21,7 @@ const loading = ref(false)
|
||||
const verifyResult = ref<any>(null)
|
||||
const organizeResult = ref<any>(null)
|
||||
|
||||
// 账号文件管理状态
|
||||
// 内部账号库管理状态
|
||||
const accountContent = ref('')
|
||||
const accountLoading = ref(false)
|
||||
const selectedAccountNames = ref<string[]>([])
|
||||
@@ -46,7 +46,7 @@ const importAccountText = async (content: string) => {
|
||||
try {
|
||||
const result = await ImportAccounts(content)
|
||||
if (!result.success) {
|
||||
showToast('导入失败', result.error || '账号文件未更新', 'error')
|
||||
showToast('导入失败', result.error || '内部账号库未更新', 'error')
|
||||
return
|
||||
}
|
||||
accountContent.value = ''
|
||||
@@ -115,7 +115,7 @@ const saveEdit = async () => {
|
||||
try {
|
||||
const result = await UpdateAccount(editingAccount.value.name, editName.value, editCookie.value)
|
||||
if (!result.success) {
|
||||
showToast('保存失败', result.error || '账号文件未更新', 'error')
|
||||
showToast('保存失败', result.error || '内部账号库未更新', 'error')
|
||||
return
|
||||
}
|
||||
await refreshManagedAccounts()
|
||||
@@ -139,7 +139,7 @@ const deleteManagedAccounts = async (names: string[]) => {
|
||||
try {
|
||||
const result = await DeleteAccounts(targetNames)
|
||||
if (!result.success) {
|
||||
showToast('删除失败', result.error || '账号文件未更新', 'error')
|
||||
showToast('删除失败', result.error || '内部账号库未更新', 'error')
|
||||
return
|
||||
}
|
||||
await refreshManagedAccounts()
|
||||
|
||||
Reference in New Issue
Block a user