fix: up detail, router, display for dont have role
This commit is contained in:
@@ -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([
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user