|
|
@ -3,7 +3,7 @@ |
|
|
|
<span class="cur">当前位置:</span> |
|
|
|
<span class="cur">当前位置:</span> |
|
|
|
<el-breadcrumb separator="/"> |
|
|
|
<el-breadcrumb separator="/"> |
|
|
|
<el-breadcrumb-item :to="{ path: '/' }">超竞学生端</el-breadcrumb-item> |
|
|
|
<el-breadcrumb-item :to="{ path: '/' }">超竞学生端</el-breadcrumb-item> |
|
|
|
<el-breadcrumb-item v-for="(item,index) in pages" :key="index" :to="{ path: index == pages.length - 1 ? curRoute : route }">{{item}}</el-breadcrumb-item> |
|
|
|
<el-breadcrumb-item v-for="(item,index) in pages" :key="index" :to="{ path: index == pages.length - 1 ? curRoute : path }">{{item}}</el-breadcrumb-item> |
|
|
|
</el-breadcrumb> |
|
|
|
</el-breadcrumb> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</template> |
|
|
@ -14,12 +14,12 @@ export default { |
|
|
|
data() { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
return { |
|
|
|
pages: this.data.split('/'), |
|
|
|
pages: this.data.split('/'), |
|
|
|
curRoute: this.$route.path |
|
|
|
curRoute: this.$route.path, |
|
|
|
|
|
|
|
path: this.route ? this.route : 'list' |
|
|
|
}; |
|
|
|
}; |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
update(data){ |
|
|
|
update(data){ |
|
|
|
console.log(2222,data) |
|
|
|
|
|
|
|
this.pages = data.split('/') |
|
|
|
this.pages = data.split('/') |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|