Browse Source

fix saveform

wolyshaw 4 years ago
parent
commit
960cbced1b
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/components/save-form/index.vue

+ 3 - 0
src/components/save-form/index.vue

@@ -44,6 +44,9 @@ export default {
       evt.stopPropagation()
       evt.stopImmediatePropagation()
       evt.preventDefault()
+      if (this.saveKey) {
+        this.searchs.update(this.$route.path, undefined, 'bind')
+      }
       this.searchs.update(this.model, undefined, 'form')
         console.log(  new Searchs().searchs)
       if (this.$listeners.submit) {