Commit 216321aa authored by shaw's avatar shaw
Browse files

Merge PR #183: 修复账号管理页面过滤器和错误提示问题

parents 58b17771 5a52cb60
...@@ -1140,7 +1140,7 @@ const handleSubmit = async () => { ...@@ -1140,7 +1140,7 @@ const handleSubmit = async () => {
emit('updated') emit('updated')
handleClose() handleClose()
} catch (error: any) { } catch (error: any) {
appStore.showError(error.response?.data?.detail || t('admin.accounts.failedToUpdate')) appStore.showError(error.response?.data?.message || error.response?.data?.detail || t('admin.accounts.failedToUpdate'))
} finally { } finally {
submitting.value = false submitting.value = false
} }
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
<AccountTableFilters <AccountTableFilters
v-model:searchQuery="params.search" v-model:searchQuery="params.search"
:filters="params" :filters="params"
@update:filters="(newFilters) => Object.assign(params, newFilters)"
@change="reload" @change="reload"
@update:searchQuery="debouncedReload" @update:searchQuery="debouncedReload"
/> />
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment