feat: 路由守卫调整/
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user