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