|
@@ -97,6 +97,9 @@ service.interceptors.response.use(
|
|
|
// 有 code 代表这是一个后端接口 可以进行进一步的判断
|
|
// 有 code 代表这是一个后端接口 可以进行进一步的判断
|
|
|
switch (code) {
|
|
switch (code) {
|
|
|
case 0:
|
|
case 0:
|
|
|
|
|
+ if (dataAxios.msg === 'ok') {
|
|
|
|
|
+ break
|
|
|
|
|
+ }
|
|
|
noticeMsg(dataAxios, 'success')
|
|
noticeMsg(dataAxios, 'success')
|
|
|
// [ 示例 ] code === 0 代表没有错误
|
|
// [ 示例 ] code === 0 代表没有错误
|
|
|
if (dataAxios.data) {
|
|
if (dataAxios.data) {
|