From 6e912707b2c73bb183563f197b92b08ac19790ff Mon Sep 17 00:00:00 2001 From: jinlin <jinlin> Date: 星期一, 06 十一月 2023 17:12:59 +0800 Subject: [PATCH] Changes --- zt/core/src/main/resources/template/add-or-update.vue.vm | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/zt/core/src/main/resources/template/add-or-update.vue.vm b/zt/core/src/main/resources/template/add-or-update.vue.vm index 8c2775c..e7b9b4a 100644 --- a/zt/core/src/main/resources/template/add-or-update.vue.vm +++ b/zt/core/src/main/resources/template/add-or-update.vue.vm @@ -26,7 +26,7 @@ methods: { // 鑾峰彇淇℃伅 async getInfo() { - let res = await #[[this.$http.get(]]#`/${moduleName}/${pathName}/#[[${]]#this.dataForm.${pk.attrName}}`) + let res = await #[[this.$http.get(]]#`/${moduleName}/${pathName}/#[[${]]#this.dataForm.id}`) this.dataForm = { ...this.dataForm, ...res.data @@ -34,7 +34,7 @@ }, // 琛ㄥ崟鎻愪氦 async formSubmit() { - let res = await #[[this.$http]]#[!this.dataForm.${pk.attrName} ? 'post' : 'put']('/${moduleName}/${pathName}/', this.dataForm) + let res = await #[[this.$http]]#[!this.dataForm.id ? 'post' : 'put']('/${moduleName}/${pathName}/', this.dataForm) if (res.success) { await this.$tip.success() this.$refs.dialog.close() -- Gitblit v1.9.1