# websx二期_vue **Repository Path**: jiely007/websx-phase-ii-vue ## Basic Information - **Project Name**: websx二期_vue - **Description**: 这个一个牛逼的后台管理系统 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-06-05 - **Last Updated**: 2022-05-24 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # manger > A Vue.js project ## Build Setup ``` bash # install dependencies npm install # serve with hot reload at localhost:8080 npm run dev # build for production with minification npm run build # build for production and view the bundle analyzer report npm run build --report ``` For a detailed explanation on how things work, check out the [guide](http://vuejs-templates.github.io/webpack/) and [docs for vue-loader](http://vuejs.github.io/vue-loader). 安装 Vue 脚手架 cnpm i vue-cli -g ② 通过 Vue 脚手架创建项目 vue init webpack manger ③ 配置 Vue 路由 cnpm i vue-router -S 导出路由对象 ④ 配置 Element-UI 组件库 cnpm i element-ui -S ⑤ 配 置 axios 库 cnpm i axios -S ⑥ 初始化 git 远程仓库 git init 初始化本地仓库 git add . 把本地代码提交到本地仓库的暂存区 git commit -m 把本地代码提交到本地仓库 ⑦ 将本地项目托管到 Github 或 码云 中 git remote add origin git@gitee.com:jiely007/websx-phase-ii-vue.git git push -u origin master 把本地的仓库跟远程仓库关联起来 // 配置less语法 "less": "^3.9.0", "less-loader": "^4.1.0", cnpm install less@3.9.0 less-loader@4.1.0 --save-dev build/webpack.base.conf.js 配置 test: /\.less$/, loader: "style-loader!css-loader!less-loader" "token": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjUwMCwicmlkIjowLCJpYXQiOjE2MjI4NzI4ODIsImV4cCI6MTYyMjk1OTI4Mn0.ErGkf8RYIHMpbZtBxUc3Phl4bUMsSKqUmFwXzWYL4U4" }, const regEmail = /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(\.[a-zA-Z0-9_-])+/ const regMobile = /^(0|86|17951)?(13[0-9]|15[012356789]|17[678]|18[0-9]|14[57])[0-9]{8}$/ 权限管理或者权限控制 1 通过权限管理模块控制不同的用户可以进行哪些操作,具体可以通过角色的方式进行控制,即每个用户分配 一个特定的角色,角色包括不同的功能权限。 2 通过动态路由 去生成不同路由权限(不能的路由导航) 按钮的权限控制 (自定义指令)https://www.cnblogs.com/leeke98/p/9458540.html 权限控制 视频学习 https://www.bilibili.com/video/BV15Q4y1K79c?from=search&seid=11549189698373445555