From 52a302b11c08cbc564ff3931038ae57a305a95d6 Mon Sep 17 00:00:00 2001
From: jinlin <jinlin>
Date: 星期二, 23 一月 2024 09:23:52 +0800
Subject: [PATCH] 修改
---
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 fb3afda..2955394 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
@@ -30,7 +30,7 @@
methods: {
// 鑾峰彇淇℃伅
async getInfo() {
- let res = await #[[this.$http.get(]]#`/${moduleName}/${pathName}/#[[${]]#this.dataForm.id}`)
+ let res = await #[[this.$http.get(]]#`/${moduleName}/${className}/#[[${]]#this.dataForm.id}`)
this.dataForm = {
...this.dataForm,
...res.data
@@ -38,7 +38,7 @@
},
// 琛ㄥ崟鎻愪氦
async formSubmit() {
- let res = await #[[this.$http]]#[!this.dataForm.id ? 'post' : 'put']('/${moduleName}/${pathName}/', this.dataForm)
+ let res = await #[[this.$http]]#[!this.dataForm.id ? 'post' : 'put']('/${moduleName}/${className}/', this.dataForm)
if (res.success) {
await this.$tip.success()
this.$refs.dialog.close()
--
Gitblit v1.9.1