liujq 4 tahun lalu
induk
melakukan
3816fa5a6a

File diff ditekan karena terlalu besar
+ 0 - 0
dist/index.html


File diff ditekan karena terlalu besar
+ 0 - 0
dist/static/css/chunk-57af9ebf.0e5e92da.css


File diff ditekan karena terlalu besar
+ 0 - 0
dist/static/js/app.ad09a1ff.js


File diff ditekan karena terlalu besar
+ 0 - 0
dist/static/js/chunk-26536c7f.f54086c5.js


File diff ditekan karena terlalu besar
+ 0 - 0
dist/static/js/chunk-57af9ebf.2a380bb7.js


+ 11 - 11
src/views/news/components/popup/IndexEditSelf.vue

@@ -45,18 +45,16 @@ export default {
   watch: {
     isShow: function(val) {
       if (val) {
-        if (val) {
-          if (this.curObj.id) {
-            this.$api.house.adminformationdetail({id: this.curObj.id}).then(res => {
-              let curData = res || {}
-              this.cObj = curData || {}
-              this.content = curData.content || ''
-              this.getDef()
-            })
-          } else {
-            this.cObj = this.curObj
+        if (this.curObj.id) {
+          this.$api.house.adminformationdetail({id: this.curObj.id}).then(res => {
+            let curData = res || {}
+            this.cObj = curData || {}
+            this.content = curData.content || ''
             this.getDef()
-          }
+          })
+        } else {
+          this.cObj = this.curObj
+          this.getDef()
         }
       }
     },
@@ -112,11 +110,13 @@ export default {
             this.$api.house[apiStr](newForm).then(data => {
               this.$msgs(newForm.id ? '编辑成功' : '新增成功')
               this.$emit('close', newForm)
+              this.$router.go(0)
             })
           }
         })
       } else {
         this.$emit('close')
+        this.$router.go(0)
         this.setDefaultValue()
       }
     }

Beberapa file tidak ditampilkan karena terlalu banyak file yang berubah dalam diff ini