Commit 2ff0e419 by tang

feat: GS1标准服务提供商医疗行业案例以及完善面包屑报错【100%】

parent 8fd84e42
......@@ -23,7 +23,7 @@
<script>
export default {
created() {
mounted() {
// 面包屑单独处理
this.$store.commit("system/SET_BREADCRUMB", [
{name: "服务中心", path: "/Service/BarcodeV"},
......
......@@ -72,8 +72,7 @@ export default {
watch: {
subNav: {
handler(val) {
console.log("watch------ subNav", val);
// console.log("watch------ subNav", val);
const result = this.treeFind(
val,
(item) => item.link === this.$route.path
......
......@@ -26,11 +26,13 @@ export default {
computed: {
...mapState("system", ["breadcrumb"]),
bread() {
const bread = [...this.breadcrumb];
bread[bread.length - 1].active = true;
return bread;
console.log(1111)
console.log(bread)
if(this.breadcrumb&&this.breadcrumb.length>0){
const bread = [...this.breadcrumb];
bread[bread.length - 1].active = true;
return bread;
}else{
return []
}
},
},
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment