liwei19941102 2 лет назад
Родитель
Сommit
f6d9089826
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      vite.config.ts

+ 1 - 0
vite.config.ts

@@ -27,6 +27,7 @@ export default defineConfig(({ mode, command }: ConfigEnv): UserConfig => {
       proxy: {
       proxy: {
         [env.VITE_APP_BASE_API]: {
         [env.VITE_APP_BASE_API]: {
           target: 'http://localhost:8080',
           target: 'http://localhost:8080',
+          // target: 'http://47.104.97.60/api',
           changeOrigin: true,
           changeOrigin: true,
           ws: true,
           ws: true,
           rewrite: (path) => path.replace(new RegExp('^' + env.VITE_APP_BASE_API), '')
           rewrite: (path) => path.replace(new RegExp('^' + env.VITE_APP_BASE_API), '')