Ver Fonte

暴露保存方法

wolyshaw há 4 anos atrás
pai
commit
84c8c933ce
1 ficheiros alterados com 3 adições e 0 exclusões
  1. 3 0
      src/components/save-form/index.vue

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

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