fix: up detail, router, display for dont have role

This commit is contained in:
wenhua
2024-05-27 22:33:24 +08:00
parent 26931f4200
commit 304effe93c
8 changed files with 30 additions and 9 deletions

View File

@@ -1,5 +1,5 @@
<template>
<div class="home-bg">
<div class="home-bg" v-if="AuthStore.roles.length">
<el-row gutter="20">
<el-col :xs="24" :sm="24" :md="18" :lg="18" :xl="18">
<div class="left">
@@ -46,11 +46,16 @@
</el-col>
</el-row>
</div>
<div v-else style="display: flex; justify-content: center; align-items: center; height: 100%;" >
您没有任何角色 请联系管理员
</div>
</template>
<script setup lang="jsx">
import 'element-plus/theme-chalk/display.css'
import { useAuthStore } from '@/stores/userstore.js'
const AuthStore = useAuthStore()
const router = useRouter()
const list = ref([
{