1. 在本页面打开链接
    <template>
        <div>
            <el-button @click="handle(scope.row.url)">打印</el-button>
        </div>
    </template>
    <script>
        handle(url) {
            window.location.href = 'url'
        }
    </script>
     
  2. 在新页面打开链接
    <template>
        <div>
            <el-button @click="handle(scope.row.url)">打印</el-button>
        </div>
    </template>
    <script>
        handle(url) {
            window.open('url', '_blank')
        }
    </script>
     

 

 

Logo

前往低代码交流专区

更多推荐