From 366793e9cccb175dd90469edb48fe90b368fdc5a Mon Sep 17 00:00:00 2001 From: weipengfei <2187978347@qq.com> Date: Fri, 27 Oct 2023 17:57:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=95=86=E5=93=81=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E9=A1=B5=E9=9D=A2bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/admin/goods_details/index.vue | 69 ++++++++++++++++++++++++++--- pages/goods_details/index.vue | 24 ++++++---- 2 files changed, 79 insertions(+), 14 deletions(-) diff --git a/pages/admin/goods_details/index.vue b/pages/admin/goods_details/index.vue index f0c5d5f..bd2454e 100644 --- a/pages/admin/goods_details/index.vue +++ b/pages/admin/goods_details/index.vue @@ -264,14 +264,22 @@ 产品介绍 - + + + + + + - {{description.content.title}} - - - + {{description.content.title}} + + + + @@ -558,6 +566,23 @@ } that.$set(that, 'storeInfo', storeInfo); that.$set(that, 'description', storeInfo.content); + if(typeof that.description.content == 'string'){ + try{ + that.description.content = JSON.parse(that.description.content); + }catch(e){ + console.log(e); + } + } + if (that.description.type == 0 && typeof that.description.content == 'string') { + that.description.content = that.description.content.replace( + / \ No newline at end of file diff --git a/pages/goods_details/index.vue b/pages/goods_details/index.vue index cad92c0..943d57c 100644 --- a/pages/goods_details/index.vue +++ b/pages/goods_details/index.vue @@ -278,22 +278,22 @@ 产品介绍 - - - {{description.content.title}} + {{description.content.title}} - - + + - + @@ -1059,7 +1059,14 @@ } that.$set(that, 'storeInfo', storeInfo); that.$set(that, 'description', storeInfo.content); - if (that.description.type == 0) { + if(typeof that.description.content == 'string'){ + try{ + that.description.content = JSON.parse(that.description.content); + }catch(e){ + console.log(e); + } + } + if (that.description.type == 0 && typeof that.description.content == 'string') { that.description.content = that.description.content.replace( / \ No newline at end of file