feat: 问题管理
This commit is contained in:
parent
d21c0822dc
commit
26a67a61a6
@ -75,7 +75,9 @@ const submit = async (formEl: FormInstance | undefined) => {
|
|||||||
if (!formEl) return
|
if (!formEl) return
|
||||||
await formEl.validate((valid, fields) => {
|
await formEl.validate((valid, fields) => {
|
||||||
if (valid) {
|
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) => {
|
problem.asyncPostProblem(id, arr, loading).then((res: any) => {
|
||||||
MsgSuccess('创建成功')
|
MsgSuccess('创建成功')
|
||||||
emit('refresh')
|
emit('refresh')
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user