vite.config.js
@@ -17,6 +17,7 @@ const isVisualizer = process.env.VISUALIZER === 'show' export default defineConfig({ // base: '/syn/', base: './', plugins: [ vue(), @@ -61,8 +62,7 @@ // 关键:用正则表达式匹配所有含/api的路径(忽略大小写) '^/api.*': { // 匹配以/api开头的任何路径(如/api、/api/xxx、/api?xx等) // target: 'http://154.23.189.28:8086', target:'https://api.swftek.com', // target:'https://api.mak-web3.com', target: 'https://allapi.sceazy.com', // 开发环境API地址,与config/index.js中的ENV_DEV保持一致 // target: 'https://by2.cccxxx.cc', changeOrigin: true, secure: false,