Sfoglia il codice sorgente

update Admin.NET/Admin.NET.Web.Entry/wwwroot/template/editDialog.vue.vm.
fix: 变量使用错误提示

Signed-off-by: xin12023 <chenxin2024@gmail.com>

xin12023 1 anno fa
parent
commit
5dd29b4361

+ 2 - 2
Admin.NET/Admin.NET.Web.Entry/wwwroot/template/editDialog.vue.vm

@@ -23,7 +23,7 @@ const state = reactive({
 	title: '',
 	loading: false,
 	showDialog: false,
-	ruleForm: {},
+	ruleForm: {} as any,
 	stores: @(Model.HasDictField || Model.HasEnumField || Model.HasConstField ? "useUserInfo()" : "{}"),
 	dropdownData: {} as any,
 });
@@ -47,7 +47,7 @@ onMounted(async () => {
 });
 
 // 打开弹窗
-const openDialog = async (row: any, title) => {
+const openDialog = async (row: any, title: string) => {
 	state.title = title;
 	row = row ?? { @(Model.GetAddDefaultValue()) };
 	state.ruleForm = row.id ? await @(Model.LowerClassName)Api.detail(row.id).then(res => res.data.result) : JSON.parse(JSON.stringify(row));