Kaynağa Gözat

fix:提醒详情中替换$为inputBody

梦辉 5 ay önce
ebeveyn
işleme
8fc511a7ae

+ 7 - 2
src/subPages/pages/commitment/remindDetail/index.vue

@@ -6,12 +6,17 @@ export default {
     /* 提醒uuid */
     '$route.query.uuid': {
       handler() {
-        this.handleGetDetail()
+        if(this.$route.query.uuid && this.$route.path === '/subPages/pages/commitment/remindDetail/index') {
+          this.handleGetDetail()
+        }
       },
       immediate: true,
       deep: true
     }
   },
+  activated() {
+    this.handleGetDetail()
+  },
   data() {
     return {
       reminderDetail: {},
@@ -66,7 +71,7 @@ export default {
       <van-divider></van-divider>
       <view>
         <view class="indicator-body">
-          {{ reminderDetail.indicatorInputBody }}
+          {{ reminderDetail.indicatorInputBody ? reminderDetail.indicatorInputBody.replace('&', reminderDetail.inputBody + reminderDetail.inputSegment) : ''}}
         </view>
         <view>
           <view class="other-title">