Git Product home page Git Product logo

mall-admin's Issues

跨域问题

Question(提问)

Steps to reproduce(问题复现步骤)

我在远程服务器端(公司内网服务器)部署了后台youlai-mall,在本地使用vs code打开youlai-mall-admin,执行npm run dev,无论我怎么修改vue.config.js,都无法连接上。

Screenshot or Gif(截图或动态图)

以下是我的vue.config.js配置:
proxy: { [process.env.VUE_APP_BASE_API]: { target:http://52.239.184.180:9999`,
changeOrigin: true,
pathRewrite: {
['^' + process.env.VUE_APP_BASE_API]: ''
}
}
}`

Link to minimal reproduction(最小可在线还原demo)

Other relevant information(格外信息)

  • Your OS:win10
  • Node.js version:
  • vue-element-admin version:

node_modules.zip存放的必要性

node_modules中的文件与package-lock.json和本机node版本以及系统密切相关,切换node版本或者系统都可能导致其不可用,且依赖包体积过大,没什么必要放在GitHub中

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.