Explorar o código

暴露保存方法

wolyshaw %!s(int64=4) %!d(string=hai) anos
pai
achega
84c8c933ce
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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)