ZengTao
2024-01-19 c13207a19a92c845fcb8c356e01f073142d9084e
CanadaMes-ui/vue.config.js
@@ -8,11 +8,12 @@
    devServer: {
        proxy: {
            '/api': {
                target: `http://127.0.0.1:8888/canadames`,
                target: `http://localhost:8888/springboot-vue3`,
                changeOrigin: true,
                pathRewrite: {
                    '^/api': ''
                }
            }
        }
    },
@@ -20,8 +21,8 @@
        resolve: {
            extensions: ['js', 'vue'],
            alias: {
                '@': path.resolve(__dirname, 'src') // 确保有这个别名配置
              }
                '@': resolve('src')
            }
        }
    }
}