整合api请求、添加购买会员卡页面、登陆页面

This commit is contained in:
future
2026-06-23 22:17:53 +08:00
parent 1c547a717e
commit 8d8c823616
70 changed files with 7666 additions and 2656 deletions
+5 -1
View File
@@ -5,6 +5,10 @@ import path from 'path'
// 用来匹配地址,解决跨域问题
export default defineConfig({
plugins: [uni()],
// 配置源目录为根目录,不使用src
uni: {
inputDir: path.resolve(__dirname, '.')
},
resolve: {
alias: {
'@': path.resolve(__dirname, '.')
@@ -13,7 +17,7 @@ export default defineConfig({
server: {
proxy: {
'/api': {
target: 'https://www.gymmanage.xyz',
target: 'http://192.168.43.89:8084',
changeOrigin: true,
secure: true,
bypass: function(req, res, proxyOptions) {