add wechat login

This commit is contained in:
hobby
2025-08-22 07:36:19 +08:00
parent 2a4d3f815f
commit 97188321d4
5 changed files with 86 additions and 23 deletions

View File

@@ -11,14 +11,14 @@ export default defineConfig({
port: 3000,
open: true,
host: true,
// 如果有跨域需求,可以添加代理配置
// proxy: {
// '/api': {
// target: 'your-api-url',
// changeOrigin: true,
// rewrite: (path) => path.replace(/^\/api/, '')
// }
// }
// 代理配置解决跨域问题
proxy: {
'/api': {
target: 'http://localhost:8082',
changeOrigin: true,
secure: false
}
}
},
resolve: {
alias: {