Projects
View on GitHub
zgsnbtl/vue-guapi
About
vue移动小说阅读网站项目手机端可在线访问前后端分离
Web & App DevelopmentMeasured star growth
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- -1
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
Originalvue-book
代码为实习时写的觉得不错点个star~·~ 有问题微信找我:xiaoyuzz2
技术栈
vue vue-cli3 vue-router vuex es6 webpack axios sass mint-ui javaScript
源码地址
https://github.com/zgsnbtl/vue-guapi
访问地址
第三方接口跨域在本地vue-cli3脚手架中的vue.config.js中配置如下代码
devServer: {
disableHostCheck: true,
proxy: {
'/api': {
target: 'http://www.api.zhuishushenqi.com',
ws: true,
changeOrigin: true,
pathRewrite: {
'^/api': ''
}
},
'/content': {
target: 'http://chapter2.zhuishushenqi.com',
changeOrigin: true,
ws: true,
pathRewrite: {
'^/content': ''
}
}
}
}
打包后路径问题vue.config.js中配置
baseUrl: './'
部署服务器时使用nginx代理
截图

Customize configuration
Explore related projects
Loading…