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)
}
可用于后台管理系统侧边栏默认渲染选中的页面