Browse Source

fix: 修改前缀

bill 2 năm trước cách đây
mục cha
commit
cb0d9a7048
1 tập tin đã thay đổi với 1 bổ sung3 xóa
  1. 1 3
      src/env/index.ts

+ 1 - 3
src/env/index.ts

@@ -5,9 +5,7 @@ export type Params = {
 }
 
 export const params = strToParams(location.search) as Params
-export const baseURL = import.meta.env.DEV
-  ? '/api'
-  : 'https://v4-test.4dkankan.com'
+export const baseURL = import.meta.env.DEV ? '/' : '/'
 
 export const registerLink =
   import.meta.env.VITE_SERVER + '/#/login/register?from=%2F'