We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
主要步骤:
我的环境:
安装依赖
安装生产依赖 npm install --save echarts@4.2.0-rc.2 npm install --save js-cookie@2.2.0 npm install --save normalize.css@8.0.0 npm install --save nprogress@0.2.0 npm install --save v-charts@1.19.0 npm install --save v-distpicker@1.0.20 npm install --save vue-router@3.4.9 npm install --save axios@0.26.0 npm install --save vuex@3.6.2 npm install --save element-ui
注意,需要根据NoseJS的版本安装 cnpm install --save-dev node-sass@6.0.1 cnpm install --save-dev sass-loader@10.2.0
// vue.config.js module.exports = { lintOnSave: false,//是否在保存时检查 devServer: { host: 'localhost',//本机ip port: 9020,//本项目使用的端口 open: true, proxy: { '/': { //代理别名 target: 'http://localhost:8080', //代理目标值 changeOrigin: true, secure: true, pathRewrite:{ //替换路径中的/api '^/':'/' } // pathRequiresRewrite: { // '^/api': '' // } } }, overlay: { warning: false, errors: true } }, runtimeCompiler: true }
The text was updated successfully, but these errors were encountered:
注意: 我在一切都搭建完成,执行“npm run serve”后,进入登录页面,报了个错:
我的解决方案
Sorry, something went wrong.
前端部署的说明:https://www.macrozheng.com/mall/deploy/mall_deploy_web.html
No branches or pull requests
主要步骤:
我的环境:
安装依赖
安装生产依赖
npm install --save echarts@4.2.0-rc.2
npm install --save js-cookie@2.2.0
npm install --save normalize.css@8.0.0
npm install --save nprogress@0.2.0
npm install --save v-charts@1.19.0
npm install --save v-distpicker@1.0.20
npm install --save vue-router@3.4.9
npm install --save axios@0.26.0
npm install --save vuex@3.6.2
npm install --save element-ui
注意,需要根据NoseJS的版本安装
cnpm install --save-dev node-sass@6.0.1
cnpm install --save-dev sass-loader@10.2.0
The text was updated successfully, but these errors were encountered: