Skip to content
  • Projects
  • Groups
  • Snippets
  • Help

front-document / vue-front

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Settings
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • vue-front
  • vue.config.js
  • luyt's avatar
    add;测试git hook · 6bef5cc8
    luyt committed Mar 08, 2022
    6bef5cc8 Browse Files
vue.config.js 466 Bytes
RawBlameHistoryPermalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
module.exports = {
  devServer: {
    port: 8080, // 端口
    proxy: {
      //配置跨域
      "/api3": {
        target: "http://192.168.2.24:7001",
        ws:true,
        changOrigin: true,
        pathRewrite: {
          "^/api3": "/"
        }
      }, 
      "/api2": {
        target: "http://192.168.3.233:8090/api/v4/projects",
        ws:true,
        changOrigin: true,
        pathRewrite: {
          "^/api2": "/"
        }
      }
    }
  }
};