Cross-domain problems in vue cli3.0

problem description

I created the vue.config.js file
in the root directory and made related settings
module.exports = {
productionSourceMap: false,
devServer: {

// 
proxy: {
  "/v1": {
    target: "http://192.168.31.131:8080/", // 
    ws: true, // websockets
    changOrigin: true, 
    pathRequiresRewrite: {
      "^/v1": "/"
    }
  }
}

}
}

the environmental background of the problems and what methods you have tried

clipboard.png
the request path has not changed.

related codes

          axios.get("/v1/config/dict/listDictNoRoot/CREATECLASSES").then(
    response => {
   let res_data = response.data
   console.log("res_data",res_data)
    }
  )
  

how can I agent to my target domain name

Dec.23,2021

pathRewrite: {
  "^/v1": "/"
}
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3ba19-2c2a1.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3ba19-2c2a1.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?