@@ -79,6 +79,9 @@ axios.interceptors.response.use(res => {
if (statusWhiteList.includes(status)) return Promise.reject(res);
//如果是401则跳转到登录页面
if (status === 401) store.dispatch('FedLogOut').then(() => router.push({ path: '/login' }));
+ if (status === 601) {
+ return res
+ }
// 如果请求为非200否者默认统一处理
if (status !== 200) {
Message({
@@ -2213,6 +2213,15 @@ export default {
this.pageLoading = true
billsSubmit(this.form).then(res => {
this.pageLoading = false
+ if (res.data.code === 601) {
+ console.info('11111111111----', res)
+ this.billsDetailfun(this.form.id)
+ this.$message({
+ type: "error",
+ message: res.data.msg
+ });
+ return true
this.$message({
type: "success",
message: "操作成功!"