从新窗口打开路由页面(Vue),可携带参数

不携带参数跳转:
 window.open(`/appSetting/${this.appid}/devWorkbench/${modelId}`, '_blank');
携带参数
      const { href } = this.$router.resolve({
        path: '/WorkbenchDev', query: {
          appid: this.appid,
          modelId: modelId
        }
      });
      window.open(href, '_blank');

你可能感兴趣的:(vue.js,前端,javascript)