vue3中无法使用vue2的方式获取路由地址
现在需要通过代理的方式获取路由
const proxy = getCurrentInstance()?.proxy;
const currentPath = computed(() => proxy?.$route.path);
vue3中无法使用vue2的方式获取路由地址
现在需要通过代理的方式获取路由
const proxy = getCurrentInstance()?.proxy;
const currentPath = computed(() => proxy?.$route.path);