Skip to content

Commit

Permalink
perf: 移除遗留的废弃逻辑
Browse files Browse the repository at this point in the history
  • Loading branch information
pany-ang committed Feb 7, 2024
1 parent b92a1a2 commit a00e57a
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/views/permission/page.vue
Original file line number Diff line number Diff line change
@@ -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>
Expand Down

0 comments on commit a00e57a

Please sign in to comment.