云链智安app
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910111213141516
  1. // vue.config.js
  2. module.exports = {
  3. devServer: {
  4. proxy: {
  5. // 代理配置
  6. '/api': {
  7. target: 'https://esos-iot.bjdexn.cn/user/', // 目标服务器地址
  8. changeOrigin: true, // 是否跨域
  9. secure: true, // 如果是 https,需要设置为 false
  10. pathRewrite: {
  11. '^/api': '', // 重写路径,去掉 /api 前缀
  12. },
  13. },
  14. },
  15. }
  16. };