Commit a54b7312 authored by 高宇's avatar 高宇

删除菜单

parent 78fc4e9b
......@@ -4,7 +4,8 @@ import { Message } from 'element-ui'
import NProgress from 'nprogress' // progress bar
import 'nprogress/nprogress.css' // progress bar style
import { getToken } from '@/utils/auth'
import de from "element-ui/src/locale/lang/de"; // get token from cookie
import de from 'element-ui/src/locale/lang/de'
import replace from 'bpmn-js/lib/features/replace' // get token from cookie
// import getPageTitle from '@/utils/get-page-title'
NProgress.configure({ showSpinner: false }) // NProgress Configuration
......@@ -34,7 +35,12 @@ router.beforeEach((to, from, next) => {
// store.dispatch('permission/generateRoutes', { roles }).then(accessRoutes => {
// 根据roles权限生成可访问的路由表
router.addRoutes(routers.accessedRoutes) // 动态添加可访问路由表
if (to.path === '/controlPlatform/control') {
next({ path: routers.accessedRoutes[0].children[0].path, replace: true })
} else {
next({ ...to, replace: true }) // hack方法 确保addRoutes已完成
}
} else {
alert('用户无权限')
store.dispatch('FedLogOut').then(() => {
......
......@@ -149,12 +149,12 @@
style="color: #49cec9"
@click="handleUpdate(scope.row)"
>修改</el-button>
<el-button
size="mini"
type="text"
:loading="addLoading"
@click="handleResetPwd(scope.row)"
>重置</el-button>
<!-- <el-button-->
<!-- size="mini"-->
<!-- type="text"-->
<!-- :loading="addLoading"-->
<!-- @click="handleResetPwd(scope.row)"-->
<!-- >重置</el-button>-->
<el-button
v-if="scope.row.businessId !== 1"
size="mini"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment