|
@@ -107,9 +107,14 @@ const onRefresh = () => {
|
|
}
|
|
}
|
|
|
|
|
|
/** 删除 */
|
|
/** 删除 */
|
|
-const onDelete = () => {
|
|
|
|
- if (currentExpertPaper.value) {
|
|
|
|
- useFetch('deletePaper').fetch({ id: currentExpertPaper.value.id })
|
|
|
|
|
|
+const onDelete = async () => {
|
|
|
|
+ try {
|
|
|
|
+ if (currentExpertPaper.value) {
|
|
|
|
+ await useFetch('deletePaper').fetch({ id: currentExpertPaper.value.id })
|
|
|
|
+ await onSearch()
|
|
|
|
+ }
|
|
|
|
+ } catch (error) {
|
|
|
|
+ console.error(error)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|