chore: 悦码渲染器不拦截请求的响应

This commit is contained in:
wangxuefeng
2025-03-21 18:47:44 +08:00
parent 4c59bfeb61
commit 69ccd6a48d
6 changed files with 39 additions and 15 deletions

View File

@@ -1,4 +1,3 @@
import { useUserStore } from '@/store';
import axios from 'axios';
const apiBase = import.meta.env.VITE_BASE_API_URL;
@@ -12,8 +11,6 @@ const instance = axios.create({
instance.interceptors.request.use(
(config) => {
// 可在此处添加统一请求头等配置
const userStore = useUserStore();
config.headers.Authorization = `Bearer ${userStore.token}`;
return config;
},
(error) => {

View File

@@ -62,6 +62,11 @@ onMounted(async () => {
widgetManager.set('About', {
invisible: true
});
widgetManager.set('History', {
// 有 bug先隐藏
invisible: true
});
});
});
</script>