瀏覽代碼

fix saveform

wolyshaw 4 年之前
父節點
當前提交
960cbced1b
共有 1 個文件被更改,包括 3 次插入0 次删除
  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) {