chore(vite.config.ts): api线上地址修改

Former-commit-id: 81ee88505146186ec1ea7c0859f8dfa5d8c76ad5
This commit is contained in:
郝先瑞 committed 2022-05-14 23:58:38 +08:00
1 parent d0660ab59d
commit a6b1807a53
1 file changed
+1 -1
+1 -1
View File
@@ -25,7 +25,7 @@ export default ({ mode }: ConfigEnv): UserConfig => {
open: true, // 运行自动打开浏览器
proxy: {
[env.VITE_APP_BASE_API]: {
target: 'http://www.youlai.tech:9999',
target: 'https://api.youlai.tech',
changeOrigin: true,
rewrite: path =>
path.replace(new RegExp('^' + env.VITE_APP_BASE_API), '')