用户审核管理

This commit is contained in:
仲么了
2024-01-22 15:20:30 +08:00
parent 0bf750e5ae
commit e13c9080e6
7 changed files with 273 additions and 96 deletions

View File

@@ -1,8 +1,8 @@
<template>
<component :is="config.layout.layoutMode"></component>
<component :is='config.layout.layoutMode'></component>
</template>
<script setup lang="ts">
<script setup lang='ts'>
import { reactive } from 'vue'
import { useConfig } from '@/stores/config'
import { useNavTabs } from '@/stores/navTabs'
@@ -73,6 +73,21 @@ const init = async () => {
keepalive: 0,
extend: 'none',
children: [
{
id: 3,
pid: 2,
type: 'menu',
title: '审核管理',
name: 'auth/audit',
path: 'auth/audit',
icon: 'el-icon-Avatar',
menu_type: 'tab',
url: '',
component: '/src/views/auth/audit/index.vue',
keepalive: 'auth/audit',
extend: 'none',
children: []
},
{
id: 3,
pid: 2,
@@ -135,7 +150,7 @@ const init = async () => {
})
}
handlerMenu(res.data)
handleAdminRoute([...res.data,...arr])
handleAdminRoute([...res.data, ...arr])
// 预跳转到上次路径
if (route.params.to) {
const lastRoute = JSON.parse(route.params.to as string)