refactor: 移除表单提交中的调试日志
This commit is contained in:
@ -83,15 +83,11 @@
|
|||||||
const loading = ref(false)
|
const loading = ref(false)
|
||||||
const formRef = ref()
|
const formRef = ref()
|
||||||
const handleSubmit = () => {
|
const handleSubmit = () => {
|
||||||
console.log(form)
|
|
||||||
|
|
||||||
formRef.value.validate((valid: boolean, val: any) => {
|
formRef.value.validate((valid: boolean, val: any) => {
|
||||||
console.log('00000----', val)
|
|
||||||
if (valid) {
|
if (valid) {
|
||||||
loading.value = true
|
loading.value = true
|
||||||
create(form)
|
create(form)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
console.log(res)
|
|
||||||
const { code } = res
|
const { code } = res
|
||||||
if (code === 0) {
|
if (code === 0) {
|
||||||
// 弹窗提示
|
// 弹窗提示
|
||||||
|
|||||||
Reference in New Issue
Block a user