Browse Source

Merge branch 'bugfix-error' into develop

master
2183691628 2 years ago
parent
commit
1d85228efb
2 changed files with 6 additions and 4 deletions
  1. +3
    -2
      README.md
  2. +3
    -2
      src/utils/request.js

+ 3
- 2
README.md View File

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

+ 3
- 2
src/utils/request.js View File

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


Loading…
Cancel
Save