vue跳转 打开新页面

this.$router.push/resolve/replace跳转

<el-button plain type="info" @click="company_info">
        跳转页面
</el-button>


js:

company_info() {
        let text = this.$router.resolve({
          path: '/company_comparison',
        })
        //console.log(text)
        window.open(text.href, '_blank')
      },

猜你喜欢

转载自blog.csdn.net/LQZ8888/article/details/127668084