diff --git a/src/utils/request.js b/src/utils/request.js index 9e3eb3f..664c73f 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -64,7 +64,7 @@ service.interceptors.response.use(response => { return response } const code = response.data.code - if (code === 1011006 || code === 1011007 || code === 1011008 || code === 1011009) { + if (code === 1011006 || code === 1011007 || code === 1011008 || code === 1011009 || code === 401) { Modal.error({ title: '提示:', content: response.data.message, diff --git a/src/views/main/Customer/addForm.vue b/src/views/main/Customer/addForm.vue index d3da7b5..0c33aa7 100644 --- a/src/views/main/Customer/addForm.vue +++ b/src/views/main/Customer/addForm.vue @@ -508,10 +508,12 @@ export default { } } -