Ver código fonte

Merge branch 'bugfix-error' into develop

master
2183691628 2 anos atrás
pai
commit
1d85228efb
2 arquivos alterados com 6 adições e 4 exclusões
  1. +3
    -2
      README.md
  2. +3
    -2
      src/utils/request.js

+ 3
- 2
README.md Ver arquivo

@@ -1,7 +1,7 @@
<!--
* @Date: 2021-11-29 11:14:13
* @LastEditors: JinxuChen
* @LastEditTime: 2022-01-07 15:00:02
* @LastEditTime: 2022-01-07 15:14:51
* @FilePath: \GpsCardAdmin\README.md
* @description:
-->
@@ -153,4 +153,5 @@ FIX
## v1.1.8F
`2021年1月7日`
FIX
- 修改 登录过期提示
- 修改 登录过期提示
- 修改 登录过期提示一

+ 3
- 2
src/utils/request.js Ver arquivo

@@ -1,7 +1,7 @@
/*
* @Date: 2021-12-08 15:59:46
* @LastEditors: JinxuChen
* @LastEditTime: 2022-01-07 14:58:45
* @LastEditTime: 2022-01-07 15:15:13
* @FilePath: \GpsCardAdmin\src\utils\request.js
* @description:
*/
@@ -82,8 +82,9 @@ service.interceptors.response.use(
location.reload()
})
}, 1500)
return Promise.reject(new Error('token过期,请重新登录'))
}
return Promise.reject(new Error('token过期,请重新登录'))
return Promise.reject(new Error(res.message))
} else {
return res
}


Carregando…
Cancelar
Salvar