|
|
@@ -68,8 +68,8 @@ export default defineConfig({
|
|
|
proxy: {
|
|
|
// 接口地址代理
|
|
|
"/api": {
|
|
|
- //target: "http://shvber.com:8290", // 接口的域名
|
|
|
- target: "http://192.168.0.81:7001", // 接口的域名
|
|
|
+ target: "http://shvber.com:8290", // 接口的域名
|
|
|
+ //target: "http://192.168.0.81:7001", // 接口的域名
|
|
|
secure: false, // 如果是https接口,需要配置这个参数
|
|
|
changeOrigin: true, // 如果接口跨域,需要进行这个参数配置
|
|
|
rewrite: (path) => path.replace(/^\/api/, "/api"),
|