From 8b56388de0f927fa757f1dbe1b7a4464a82e8e2d Mon Sep 17 00:00:00 2001 From: xiaobai <2511883673@qq.com> Date: Fri, 24 Mar 2023 11:37:44 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BF=BB=E5=86=99=E5=85=AC=E4=BC=97=E5=8F=B7?= =?UTF-8?q?=E7=AE=A1=E7=90=86-=E6=A0=87=E7=AD=BE=E7=AE=A1=E7=90=8620230324?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/mp/tag/index.ts | 3 +- src/views/mp/tag/form.vue | 7 +- src/views/mp/tag/tmp.vue | 286 -------------------------------------- 3 files changed, 3 insertions(+), 293 deletions(-) delete mode 100644 src/views/mp/tag/tmp.vue diff --git a/src/api/mp/tag/index.ts b/src/api/mp/tag/index.ts index e681e2e1..7fa61c75 100644 --- a/src/api/mp/tag/index.ts +++ b/src/api/mp/tag/index.ts @@ -25,9 +25,10 @@ export const deleteTag = (id) => { // 获得公众号标签 export const getTag = (id) => { - return request.get({ + const res = request.get({ url: '/mp/tag/get?id=' + id }) + return res } // 获得公众号标签分页 diff --git a/src/views/mp/tag/form.vue b/src/views/mp/tag/form.vue index 004a8589..47dcce38 100644 --- a/src/views/mp/tag/form.vue +++ b/src/views/mp/tag/form.vue @@ -7,9 +7,6 @@ label-width="80px" v-loading="formLoading" > - - - @@ -52,9 +49,7 @@ const openModal = async (type: string, id?: number) => { if (id) { formLoading.value = true try { - console.log(id) - const res = await MpTagApi.getTag(id) - formData.value = res.data + formData.value = await MpTagApi.getTag(id) //调用该接口无数据返回,导致提交修改时无法上送id编号 } finally { formLoading.value = false } diff --git a/src/views/mp/tag/tmp.vue b/src/views/mp/tag/tmp.vue deleted file mode 100644 index 7ae3ad96..00000000 --- a/src/views/mp/tag/tmp.vue +++ /dev/null @@ -1,286 +0,0 @@ - - -