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