fix: 修复授权管理,点击了查看原文按钮后,无法修改值的bug

v2
xiaojunnuo 2025-01-07 11:00:04 +08:00
parent 75081ceac3
commit 85c99f7f80
1 changed files with 5 additions and 1 deletions

View File

@ -41,7 +41,11 @@ export function getCommonColumnDefine(crudExpose: any, typeRef: any, api: any) {
column.suffixRender = (scope: { form: any; key: string }) => {
const { form, key } = scope;
const inputKey = scope.key.replace("access.", "");
return <SecretPlainGetter accessId={form.id} inputKey={inputKey} v-model={form[key]} />;
const onChange = (val: any) => {
set(form, key, val);
};
const value = get(form, key);
return <SecretPlainGetter accessId={form.id} inputKey={inputKey} modalValue={value} onUpdate:modelValue={onChange} />;
};
}
//eval