一个基于 Vue.js 的后台管理系统项目,目前是1.0版本,主要是权限管理系统,以后会增加更多功能,持续开发中...。
如果你喜欢这个项目或者它帮助你, 请给 Star~(辛苦星咯)
1【重要】、下载后,install 安装依赖,然后 npm run serve 运行,
想要成功,记得要启动后端api接口服务,也就是blog.core 项目,我配置的是端口,8081(api后端)、2364(本项目),
devServer: {
open: true, //配置自动启动浏览器
host: "127.0.0.1",
port: 2364, // 当前vue项目 端口号
https: false,
hotOnly: false, // https:{type:Boolean}
// proxy: null, // 设置代理
// proxy: 'http://123.206.33.109:8081', // 配置跨域处理,只有一个代理
proxy: {
// 配置多个代理
"/api": {
target: "http://localhost:8081",//这里改成你自己的后端api端口地址,记得每次修改,都需要重新build
//target: "http://localhost:58427",
//target: "http://api.douban.com",
ws: true,
changeOrigin: true,
pathRewrite: {
// 路径重写,
"^/apb": "" // 替换target中的请求地址
}
}
},
before: app => {}
},
博客园:https://www.cnblogs.com/laozhang-is-phi/p/10236645.html
简 书:https://www.jianshu.com/notebooks/28621653
CSDN:https://blog.csdn.net/baidu_35726140
****************************** git clone https://github.com/anjoy8/Blog.Admin.git
安装包依赖
npm install
运行开发环境
npm run serve可以在根目录的 vue.config.js 中修改端口:
"devServer": {
"host": "127.0.0.1",
"port": "2364"//端口号
},
build for production and launch server
npm run build