This commit is contained in:
2025-09-09 10:30:12 +08:00
parent 49ef330bde
commit 5a3b2399fa
2 changed files with 4 additions and 2 deletions

View File

@@ -9,6 +9,8 @@ const excludeURL = [
'/index/business/getMenu', '/index/business/getMenu',
'/admin/login/login', '/admin/login/login',
'/index/login/login', '/index/login/login',
'/index/task/getCommonRefund',
'/index/task/getDiyRefund',
]; ];
export const BASEURL = import.meta.env.MODE === 'development' ? '/baseApi' : import.meta.env.VITE_API_URL; export const BASEURL = import.meta.env.MODE === 'development' ? '/baseApi' : import.meta.env.VITE_API_URL;
@@ -60,7 +62,7 @@ request.interceptors.response.use((response) => {
const {updateRouterTag} = useSystemStore(); const {updateRouterTag} = useSystemStore();
if (!excludeURL.includes(response.config.url)) { if (!excludeURL.includes(response.config.url)) {
updateRouterTag(); updateRouterTag().then();
} }
if (!data.data) { if (!data.data) {

File diff suppressed because one or more lines are too long