import { getCurrentInstance } from 'vue';
created(){
const { proxy } = getCurrentInstance();
console.log(proxy.$router.currentRoute.fullPath)
}
可用于后台管理系统侧边栏默认渲染选中的页面
import { getCurrentInstance } from 'vue';
created(){
const { proxy } = getCurrentInstance();
console.log(proxy.$router.currentRoute.fullPath)
}
可用于后台管理系统侧边栏默认渲染选中的页面
1726
1421
1196
3022
4万+

被折叠的 条评论
为什么被折叠?