Browse Source

暴露保存方法

wolyshaw 4 năm trước cách đây
mục cha
commit
84c8c933ce
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      src/components/save-form/index.vue

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

@@ -30,6 +30,9 @@ export default {
     }
   },
   methods: {
+    save(search = null, type = 'form') {
+      this.searchs.update(search, undefined, type)
+    },
     validate(FC) {
       this.$refs.form.validate(valid => {
         FC(valid)