@@ -7,7 +7,7 @@
clearable>
<el-button @click="submitSearch" slot="append" icon="el-icon-jy-search"></el-button>
</el-input>
- <el-tabs v-model="type" v-show="tabs.length">
+ <el-tabs v-model="type" v-show="tabs.length" @tab-click="submitSearch">
<el-tab-pane v-for="item in tabs" :key="item.type" :label="item.label" :name="item.type"></el-tab-pane>
</el-tabs>
</div>
@@ -210,12 +210,13 @@ export default {
},
methods: {
goContent (item) {
- this.$router.push({
+ const routeData = this.$router.resolve({
name: 'content',
params: {
id: item.id
}
})
+ window.open(routeData.href, '_blank')
async getHome () {
getHomeHot({ sign: 'new', num: 10 }).then(res => {