no message
Former-commit-id: 70df143ed54e07f4c74dbebb9c85c16a5e04f504 Former-commit-id: 1a0534b7c0087f8fe19ade542d92e91d4a246b20 Former-commit-id: a481d3ebd87daf3170d60b660a951438e5a7358a
This commit is contained in:
@@ -2,8 +2,9 @@ import Vue from 'vue'
|
||||
import { Message } from 'element-ui'
|
||||
import axios from 'axios'
|
||||
|
||||
// 在这里对返回的数据进行处理
|
||||
// 在这里添加你自己的逻辑
|
||||
axios.interceptors.response.use(res => {
|
||||
// 在这里对返回的数据进行处理
|
||||
if (res.data.code !== undefined) {
|
||||
if (res.data.code !== 0) {
|
||||
Message.error(res.data.msg)
|
||||
|
||||
Reference in New Issue
Block a user