vue在表格中添加外部链接点击访问

    技术2022-07-11  114

    vue页面中的内部跳转,可以用this.$router.push()实现,但是如果我们还用这种方法跳到外部链接,就回报错,因为我们的外部链接前面加上了http://localhost:8080/#/这一串导致跳转出现问题。改成如下

    <template scope="scope"> <a :href="'http://'+ scope.row.show" target="_blank" style="text-decoration:none;">{{scope.row.show}}</a> </template>
    Processed: 0.008, SQL: 9