mirror of
https://github.com/un-pany/v3-admin-vite.git
synced 2025-04-20 19:09:21 +08:00
perf: 移除遗留的废弃逻辑
This commit is contained in:
parent
b92a1a24fc
commit
a00e57a1e8
@ -1,16 +1,10 @@
|
||||
<script lang="ts" setup>
|
||||
import { useRouter } from "vue-router"
|
||||
import SwitchRoles from "./components/SwitchRoles.vue"
|
||||
|
||||
const router = useRouter()
|
||||
const handleRolesChange = () => {
|
||||
router.push({ path: "/403" })
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<SwitchRoles @change="handleRolesChange" />
|
||||
<SwitchRoles />
|
||||
<el-tag type="warning" size="large">当前页面只有 admin 权限可见,切换权限后将不能进入该页面</el-tag>
|
||||
</div>
|
||||
</template>
|
||||
|
Loading…
x
Reference in New Issue
Block a user