feat: 问题管理

This commit is contained in:
wangdan-fit2cloud 2024-04-09 18:03:45 +08:00
parent d21c0822dc
commit 26a67a61a6

View File

@ -75,7 +75,9 @@ const submit = async (formEl: FormInstance | undefined) => {
if (!formEl) return
await formEl.validate((valid, fields) => {
if (valid) {
const arr = form.value.data.split('\n')
const arr = form.value.data.split('\n').filter(function (item: string) {
return item !== ''
})
problem.asyncPostProblem(id, arr, loading).then((res: any) => {
MsgSuccess('创建成功')
emit('refresh')