Commit 2ff0e419 by tang

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

parent 8fd84e42
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
<script> <script>
export default { export default {
created() { mounted() {
// 面包屑单独处理 // 面包屑单独处理
this.$store.commit("system/SET_BREADCRUMB", [ this.$store.commit("system/SET_BREADCRUMB", [
{name: "服务中心", path: "/Service/BarcodeV"}, {name: "服务中心", path: "/Service/BarcodeV"},
......
...@@ -72,8 +72,7 @@ export default { ...@@ -72,8 +72,7 @@ export default {
watch: { watch: {
subNav: { subNav: {
handler(val) { handler(val) {
console.log("watch------ subNav", val); // console.log("watch------ subNav", val);
const result = this.treeFind( const result = this.treeFind(
val, val,
(item) => item.link === this.$route.path (item) => item.link === this.$route.path
......
...@@ -26,11 +26,13 @@ export default { ...@@ -26,11 +26,13 @@ export default {
computed: { computed: {
...mapState("system", ["breadcrumb"]), ...mapState("system", ["breadcrumb"]),
bread() { bread() {
const bread = [...this.breadcrumb]; if(this.breadcrumb&&this.breadcrumb.length>0){
bread[bread.length - 1].active = true; const bread = [...this.breadcrumb];
return bread; bread[bread.length - 1].active = true;
console.log(1111) return bread;
console.log(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