Vue 使用Composition API 创建自定义可提交表单并在提交时验证
首先把我们需要用到的表单逻辑写入一个js文件
import { ref, reactive, watch } from "@vue/composition-api"
import axios from "axios"
export default function ({ onError = () => {} }) {
const industries = ref([])
const form = reactive({
name: ref(""),
telephone: ref
原创
2021-05-27 18:22:19 ·
495 阅读 ·
0 评论