12345678910111213141516 |
- const { defineConfig } = require("@vue/cli-service");
- module.exports = defineConfig({
- publicPath: "./",
- devServer: {
- proxy: {
- "/api": {
- target: "http://192.168.0.91:8081/demo/wx", // 后端接口
- changeOrigin: true, // 是否跨域
- pathRewrite: {
- "/api": "",
- },
- },
- },
- },
- transpileDependencies: true,
- });
|