|
@@ -258,12 +258,16 @@ const creatTask = async () => {
|
|
creativity
|
|
creativity
|
|
}
|
|
}
|
|
loading.value = true
|
|
loading.value = true
|
|
- const res = await postCreatTask(param)
|
|
|
|
- if (res && res.code === 0) {
|
|
|
|
|
|
+ try {
|
|
|
|
+ const res = await postCreatTask(param)
|
|
|
|
+ if (res && res.code === 0) {
|
|
|
|
+ loading.value = false
|
|
|
|
+ emitter.emit('getDaskDetail', res.data)
|
|
|
|
+ ElMessage.success(res.message)
|
|
|
|
+ dispatch('user/getInfo')
|
|
|
|
+ }
|
|
|
|
+ }catch(err) {
|
|
loading.value = false
|
|
loading.value = false
|
|
- emitter.emit('getDaskDetail', res.data)
|
|
|
|
- ElMessage.success(res.message)
|
|
|
|
- dispatch('user/getInfo')
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
// const isPage = ref(false)
|
|
// const isPage = ref(false)
|