test: 预发布加载路由异常测试
This commit is contained in:
@@ -9,6 +9,7 @@ export type LowCodeFileSchema = {
|
||||
file_path?: string;
|
||||
project_id: number;
|
||||
publish: boolean;
|
||||
published_dsl: BlockSchema;
|
||||
};
|
||||
|
||||
function transformFile(file: LowCodeFileSchema): LowCodeFileSchema {
|
||||
|
||||
@@ -13,8 +13,6 @@ instance.interceptors.request.use(
|
||||
(config) => {
|
||||
// 可在此处添加统一请求头等配置
|
||||
const userStore = useUserStore();
|
||||
console.log(localStorage.getItem('y-code-access-token'));
|
||||
console.log(userStore.token);
|
||||
config.headers.Authorization = `Bearer ${userStore.token}`;
|
||||
return config;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user