<> design sketch

<>1.vuex to configure
import Vue from 'vue' import Vuex from 'vuex' Vue.use(Vuex) export default new
Vuex.Store({ state: { bread: [] }, mutations: { }, actions: { } })
<>2. App Monitoring in $route
watch: { $route: { handler(val){ this.$store.state.bread = val.matched; } },
immediate: true }
<>$route Print results

<>matched Medium name In the routing configuration name value <>matched Medium path In the routing configuration path value { path: '/home',
name: ' home page ', component: ()=>import('../views/home') }
<>3. Component code
<template> <el-breadcrumb separator-class="el-icon-arrow-right"> <el-breadcrumb
-item v-for="(i,k) in $store.state.bread" :key="k" :to="{ path: i.path }">{{i.
name}}</el-breadcrumb-item> </el-breadcrumb> </template>

Technology
©2019-2020 Toolsou All rights reserved,
2020 year Java industry , General analysis of market environment and position Old farmer's tears : Nine iron rules of mixed workplace Database design use MySQL Processing 100 million level data 【 course 】 How to modify routing table ?vue project main.js usage method 【Java Details of knowledge points 3】 Serializable and Deserialize Renren from the perspective of Technology , Internet Marketing Python list , Yuanzu Aerial photography : Tesla Shanghai factory Model Y A large number of people have been offline