this.$router.push()无效时,首先要检查路由列表是否正确。
console.log(this.$router.options.routes);
跳转
/*本窗口*/// this.$router.push({ path: '/filePreview', query: { path: row.path } })/*新打开窗口*/let routeData = this.$router.resolve({ path: '/filePreview', query: { path: row.path } })window.open(routeData.href, '_blank')