public.js 374 Bytes
import { getForm } from "../flowform";
export default {
  methods: {
    //右侧表单选项卡事件
    beforeLeave (activeName, oldActiveName) {
      if (activeName && activeName != 0) this.getFromRouter(activeName)
    },
    //切换选项卡内容组件
    getFromRouter (tabname) {
      this.componentTag = getForm(tabname, this.$route.query.sqywbm);
    }
  }
}