feat:导入丢出错误信息
This commit is contained in:
@@ -343,9 +343,7 @@ const getFile = async (e) => {
|
|||||||
const routerPer = { path: `/article/${route.query.discussId}` };
|
const routerPer = { path: `/article/${route.query.discussId}` };
|
||||||
router.push(routerPer);
|
router.push(routerPer);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(error, "error");
|
ElMessage.error(error.message);
|
||||||
const { data } = error.response.data;
|
|
||||||
ElMessage.error(data.message);
|
|
||||||
importLoading.value = false;
|
importLoading.value = false;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user