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