vue3.0 version, please see this project
https://github.com/anjoy8/bcvp.vue3.git
注意npm使用的是14版本,高版本可能有问题
C:Userslaozh>npm -v
6.14.10
C:Userslaozh>node -v
v14.15.4
A backend management system project based on Vue.js, currently version 1.0, mainly a permission management system, more functions will be added in the future, and it is under continuous development...
This is just the vue project, api interface project, please check Blog.Core
If you like this project or it helps you, please give a star~ (hard work star)
npm install
npm run serve // 请不要把 再一直用 dev 命令了
Then you can directly access http://localhost:6688
如果你想换一个端口,可以直接修改根目录下的 vue.config.js 文件
devServer: {
port: 2364, // 当前 admin 项目的端口号
https: false,
而且也要代理下后端的接口地址,如果你使用 proxy 来实现跨域的话(如果用 CORS 跨域,这里就不用配置了):
proxy: {
// 配置多个代理
"/api": {
target: "http://localhost:8081",//这里改成你自己的后端api端口地址,记得每次修改,都需要重新build
npm run build
Encourage the author, simply give a reward, join the WeChat group, and answer the difficult questions in my framework (NetCore, Vue, DDD, IdentityServer4, etc.) anytime and anywhere.
Note that the main purpose is to help solve bugs and ideas. I will not teach remotely, but you can send me the code appropriately and I will help with debugging.
When tipping, note your WeChat ID and I will add you to the group. If you don’t respond within two days, privately message me on QQ (3143422472);
appreciation list
[If the picture cannot be loaded, click here](http://apk.neters.club/laozhangisphigood.jpg)Blog Park: https://www.cnblogs.com/laozhang-is-phi/p/10236645.html
Brief book: https://www.jianshu.com/notebooks/28621653
CSDN: https://blog.csdn.net/baidu_35726140
git clone https://github.com/anjoy8/Blog.Admin.git
Installation package dependencies
npm install
Run development environment
npm run serve
Local access http://localhost:2364
可以在根目录的 vue.config.js 中修改端口:
"devServer": {
"host": "127.0.0.1",
"port": "2364"//端口号
},
build for production and launch server
npm run build