菜单优化

master
李春波 2 years ago
parent 34cad7f578
commit 81799f2e03
  1. 18
      front/src/config/router.config.js
  2. 15
      front/src/views/authorizer/authorizerList.vue
  3. 13
      front/src/views/authorizer/detail.vue

@ -130,8 +130,24 @@ export const asyncRouterMap = [
{
name: 'authorizer',
path: '/authorizer',
component: () => import('@/views/authorized/authorizerList'),
redirect: '/authorizer/list',
component: RouteView,
meta: {title: '授权管理', keepAlive: true, icon: bxAnaalyse},
hideChildrenInMenu: true,
children: [
{
name: 'authorizer',
path: '/authorizer/list',
component: () => import('@/views/authorizer/authorizerList'),
meta: {title: '授权管理', keepAlive: true, icon: bxAnaalyse},
},
{
name: 'authorizer-detail',
path: '/authorizer/detail',
component: () => import('@/views/authorizer/detail'),
meta: {title: '详情', keepAlive: true, icon: bxAnaalyse},
},
]
},
// platform
{

@ -81,6 +81,10 @@
<a @click="getRefreshToken(row.appid)">复制refresh_token</a>
<a-divider type="vertical"/>
<a @click="originalMessage(row.appid)">原始报文</a>
<template v-if="row.app_type === 1">
<a-divider type="vertical"/>
<a @click="detail(row.appid)">版本管理</a>
</template>
</template>
</span>
</s-table>
@ -168,7 +172,7 @@ const columns = [
{
title: '操作',
dataIndex: 'action',
width: 300,
width: 400,
fixed: 'right',
scopedSlots: {customRender: 'action'}
}
@ -275,6 +279,15 @@ export default {
this.jsonData = JSON.parse(res['data'])
})
},
detail(id) {
this.$router.push({
path: '/authorizer/detail',
query: {
id: 123
}
})
}
}
}
</script>

@ -0,0 +1,13 @@
<template>
<div>
hello
</div>
</template>
<script setup>
</script>
<style lang="less" scoped>
</style>
Loading…
Cancel
Save