feat(modules/permission.ts): 动态路由完成

This commit is contained in:
有来技术
2021-11-30 23:56:53 +08:00
parent 1d21c6b098
commit 2e787ec921
6 changed files with 108 additions and 35 deletions

View File

@@ -29,7 +29,10 @@ export default defineComponent({
setup(props) {
const router = useRouter()
const push = () => {
router.push(props.to)
console.log(props.to)
router.push(props.to).catch((err) => {
console.log(err)
})
}
return {
push,