Ver Fonte

代码上传

zhangqi há 3 anos atrás
pai
commit
1e152a7fca
1 ficheiros alterados com 5 adições e 2 exclusões
  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>