Browse Source

fix: 修改前缀

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

+ 1 - 1
src/env/index.ts

@@ -5,7 +5,7 @@ export type Params = {
 }
 
 export const params = strToParams(location.search) as Params
-export const baseURL = import.meta.env.DEV ? '/api' : '/'
+export const baseURL = import.meta.env.DEV ? '/' : '/'
 
 export const registerLink = '/#/login/register?from=%2F'
 export const forgetLink = '/#/login/forget?from=%2F'