增加工单详情
This commit is contained in:
@@ -33,8 +33,6 @@ let MessageBox_401_show = false
|
||||
// HTTP response 拦截器
|
||||
axios.interceptors.response.use(
|
||||
(response) => {
|
||||
// const contentDisposition = response.headers['Content-Disposition'];
|
||||
// console.log(response,677)
|
||||
const token = response.headers.authorization;
|
||||
if (token) {
|
||||
let reToken = token.replace(/Bearer /g, "");
|
||||
@@ -81,41 +79,6 @@ axios.interceptors.response.use(
|
||||
|
||||
},
|
||||
(error) => {
|
||||
// if (error.response) {
|
||||
// if (error.response.status == 404) {
|
||||
// ElNotification.error({
|
||||
// title: '请求错误',
|
||||
// message: "Status:404,正在请求不存在的服务器记录!"
|
||||
// });
|
||||
// } else if (error.response.status == 500) {
|
||||
// ElNotification.error({
|
||||
// title: '请求错误',
|
||||
// message: error.response.data.message || "Status:500,服务器发生错误!"
|
||||
// });
|
||||
// } else if (error.response.status == 401) {
|
||||
// if(!MessageBox_401_show){
|
||||
// MessageBox_401_show = true
|
||||
// ElMessageBox.confirm('当前用户已被登出或无权限访问当前资源,请尝试重新登录后再操作。', '无权限访问', {
|
||||
// type: 'error',
|
||||
// closeOnClickModal: false,
|
||||
// center: true,
|
||||
// confirmButtonText: '重新登录',
|
||||
// beforeClose: (action, instance, done) => {
|
||||
// MessageBox_401_show = false
|
||||
// done()
|
||||
// }
|
||||
// }).then(() => {
|
||||
// router.replace({path: '/login'});
|
||||
// }).catch(() => {})
|
||||
// }
|
||||
// } else {
|
||||
// ElNotification.error({
|
||||
// title: '请求错误',
|
||||
// message: error.message || `Status:${error.response.status},未知错误!`
|
||||
// });
|
||||
// }
|
||||
// }
|
||||
|
||||
ElNotification.error({
|
||||
title: '请求错误',
|
||||
message: "请求服务器无响应!"
|
||||
|
||||
Reference in New Issue
Block a user