整合api请求、添加购买会员卡页面、登陆页面
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user