mirror of https://github.com/certd/certd
fix: 修复授权管理,点击了查看原文按钮后,无法修改值的bug
parent
75081ceac3
commit
85c99f7f80
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue