浏览代码

代码上传

zhangqi 2 年之前
父节点
当前提交
1e152a7fca
共有 1 个文件被更改,包括 5 次插入2 次删除
  1. 5 2
      src/components/normal-basic-layout/details/index.vue

+ 5 - 2
src/components/normal-basic-layout/details/index.vue

@@ -108,13 +108,11 @@ export default {
     next () {
       this.rowindex += 1
       this.queryData(this.rowindex)
-      this.refresh()
       
     },
     previous () {
       this.rowindex -= 1
       this.queryData(this.rowindex)
-      this.refresh()
     },
     onSuccess () {
       this.$emit('onEditSuccess')
@@ -184,6 +182,11 @@ export default {
     this.routerName = this.$route.meta.title
     this.rowindex = Number(this.$route.query.rowindex)
   },
+  watch:{
+    mainAreaData () {
+      this.refresh()
+    }
+  }
 }
 
 </script>