Skip to content

Commit

Permalink
fix: account
Browse files Browse the repository at this point in the history
  • Loading branch information
jonssonyan committed Jun 21, 2024
1 parent d1662ec commit d2eb30e
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions frontend/src/views/account/list/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -304,8 +304,8 @@
</el-form-item>
<el-form-item :label="$t('common.deleted')" prop="deleted">
<el-radio-group v-model="dataForm.deleted">
<el-radio :value="0">{{ $t("common.enable") }}</el-radio>
<el-radio :value="1">{{ $t("common.disable") }}</el-radio>
<el-radio :label="0">{{ $t("common.enable") }}</el-radio>
<el-radio :label="1">{{ $t("common.disable") }}</el-radio>
</el-radio-group>
</el-form-item>
</el-form>
Expand Down Expand Up @@ -638,13 +638,11 @@ const handleAdd = () => {
/**
* 修改
**/
const handleUpdate = (row: { [key: string]: any }) => {
const handleUpdate = async (row: { [key: string]: any }) => {
const id = row.id;
getAccountApi({ id: id }).then(({ data }) => {
Object.assign(dataForm.value, data);
quotaTmp.value = data.quota;
});
const { data } = await getAccountApi({ id: id });
Object.assign(state.dataForm, data);
quotaTmp.value = data.quota;
dialog.value = {
title: t("common.update"),
visible: true,
Expand Down

0 comments on commit d2eb30e

Please sign in to comment.