Commit 51ae0366 by Lyan

精彩视频面包屑鞥个

parent f48827a6
...@@ -104,7 +104,7 @@ ...@@ -104,7 +104,7 @@
</div> </div>
</template> </template>
<script> <script>
import { mapState } from "vuex";
import breadcrumb from "../comps/breadcrumb.vue"; import breadcrumb from "../comps/breadcrumb.vue";
import list from "./comps/list.vue"; import list from "./comps/list.vue";
import list2 from "./comps/list2.vue"; import list2 from "./comps/list2.vue";
...@@ -116,9 +116,7 @@ export default { ...@@ -116,9 +116,7 @@ export default {
list2, list2,
}, },
computed: { computed: {
...mapState({
matche: (state) => state.matche,
}),
}, },
data() { data() {
return { return {
...@@ -181,11 +179,11 @@ export default { ...@@ -181,11 +179,11 @@ export default {
this.videoStr = data.wavname; this.videoStr = data.wavname;
// this.source = data.source; // this.source = data.source;
this.editor = data.editor; this.editor = data.editor;
this.breadcrumb = this.breadcrumb.concat(this.matche); this.$store.commit("system/SET_BREADCRUMB", [
this.breadcrumb.push({ { name: "资讯中心", path: "/News/index" },
name: this.title, { name: "精彩视频", path: "/News/Video" },
}); { name: this.title },
this.$store.commit("system/SET_BREADCRUMB", this.breadcrumb); ]);
this.xgljList(data.keyword); this.xgljList(data.keyword);
} }
}, },
......
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