ow
This commit is contained in:
1 parent
f6f3735ab3
commit
95b38a7e4d
34 files changed
+6166
-329
No files matched your search
@@ -103,6 +103,10 @@ async function load(): Promise<void> {
|
||||
return;
|
||||
}
|
||||
data.value = result;
|
||||
// 子表数组统一兑底:服务端 FindByKey/保存返回可能缺字段,否则模板读 .length 会报 undefined
|
||||
if (!data.value.SecurityUserActors) {
|
||||
data.value.SecurityUserActors = [];
|
||||
}
|
||||
}
|
||||
|
||||
/** 字段改写:admin-form 不直接改 props.model,统一回抛到这里 */
|
||||
@@ -127,6 +131,9 @@ async function onSave(): Promise<void> {
|
||||
if (result?.SecurityUser) {
|
||||
data.value = result;
|
||||
}
|
||||
if (!data.value.SecurityUserActors) {
|
||||
data.value.SecurityUserActors = [];
|
||||
}
|
||||
routeId.value = String(user.value.UserName ?? "");
|
||||
readonly.value = true;
|
||||
uni.showToast({ title: t("AdminPage.savedTip"), icon: "none" });
|
||||
|
||||
Reference in new issue
Block a user