This commit is contained in:
quantulr
2023-12-05 09:35:53 +08:00
parent a987c7f912
commit 00e3187703
36 changed files with 669 additions and 115 deletions

View File

@ -4,26 +4,26 @@ module.exports = defineConfig({
plugins: [
require("unplugin-element-plus/webpack")({
// options
}),
],
})
]
},
devServer: {
proxy: {
"/dev-api": {
target: "http://localhost:8000",
changeOrigin: true,
changeOrigin: true
},
"/api": {
target: "http://81.68.90.198:8088",
changeOrigin: true,
pathRewrite: {
"^/api": "", // 假设我们想把 localhost:8888/api/login 变成www.baidu.com/login 就需要这么做 js把路径中的/api去掉
},
},
},
"^/api": "" // 假设我们想把 localhost:8888/api/login 变成www.baidu.com/login 就需要这么做 js把路径中的/api去掉
}
}
}
},
transpileDependencies: true,
lintOnSave: false,
publicPath: "./",
assetsDir: "../apps/com.awspaas.user.apps.cmp/screen",
assetsDir: "../apps/com.awspaas.user.apps.cmp/screen"
});