diff --git a/vite.config.ts b/vite.config.ts index b9a165f..e3b664a 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -30,8 +30,8 @@ const viteConfig = defineConfig((mode: ConfigEnv) => { hmr: true, proxy: { '/api': { - target: 'http://localhost:9996', - // target: 'http://8.153.108.90:9996', + // target: 'http://localhost:9996', + target: 'http://8.153.108.90:9996', ws: true, changeOrigin: true, secure: false, //解决target使用https出错问题