if (JSON.stringify(route.query) == '{}') {
  console.log('为空');
} else {
  console.log('不为空');
}
Logo

基于 Vue 的企业级 UI 组件库和中后台系统解决方案,为数万开发者服务。

更多推荐