瀏覽代碼

暴露保存方法

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