feat: 路由守卫调整/

This commit is contained in:
renxiaodong
2025-06-23 03:16:55 -04:00
parent f2ce7a8539
commit 9d7f06ad0b
8 changed files with 60 additions and 62 deletions

View File

@ -2,7 +2,7 @@
* @Author: 田鑫
* @Date: 2023-02-17 11:58:44
* @LastEditors: Please set LastEditors
* @LastEditTime: 2025-06-20 06:00:54
* @LastEditTime: 2025-06-23 03:16:47
* @Description:
*/
@ -46,11 +46,6 @@ export class Request {
(config: AxiosRequestConfig) => {
const token = localStorage.getItem('accessToken') as string;
config.headers!.Authorization = token;
if (token) {
config.headers!.Authorization = token;
} else {
config.headers!.satoken = '123';
}
if (enterprise) {
config.headers!['enterprise-id'] = enterprise.id;