vue3的写法
const ad = Object.keys(router.currentRoute.value.query).length > 0
if (!ad) {
写逻辑
}
vue2
Object.keys($router.query).length > 0
vue3的写法
const ad = Object.keys(router.currentRoute.value.query).length > 0
if (!ad) {
写逻辑
}
vue2
Object.keys($router.query).length > 0