Table of contents
Install
- clone project
git clone https://gitee.com/panjiachen/vue-admin-template.git
- Enter the project directory
cd vue-element-admin
- install dependencies
npm install
- start service
npm run dev
version management
Since our previous project was cloned directly from vue-element-admin, which has the original submission record, in order to avoid conflicts, first delete the original hidden file.git folder, and initialize the project with git
- mac shows git files
defaults write com.apple.finder AppleShowAllFiles TRUE killall Finder // 确认
- delete git files
- Initialize the project with git
git init git add . git commit -m 'init'
- Mac hides git files
defaults write com.apple.finder AppleShowAllFiles FALSE killall Finder // 确认
document
mock folder—mock data
During the development process, you can delete the mock file and remove the code that introduces the mock in the project, because the configuration in the mock is 模拟数据
, and the mock data is not required during the development process.
permission.js — login permission control file
The permission.js file is used for permission control. If different users log in to display different pages, you can configure them here.