|  |  | 
 |  |  |   <div id="app"> | 
 |  |  |     <router-view /> | 
 |  |  |     <theme-picker /> | 
 |  |  |     <Assistant v-if="routertf" /> | 
 |  |  |     <!-- <Assistant v-if="routertf" /> --> | 
 |  |  |   </div> | 
 |  |  | </template> | 
 |  |  |  | 
 |  |  | 
 |  |  |   }, | 
 |  |  |   data() { | 
 |  |  |     return { | 
 |  |  |       routers: this.$route.path.split("/").pop(), | 
 |  |  |       routers: window.location.href, | 
 |  |  |       routertf: true, | 
 |  |  |     }; | 
 |  |  |   }, | 
 |  |  |   created() { | 
 |  |  |     this.routertf = this.$route.param5; | 
 |  |  |     console.log(this.routertf); | 
 |  |  |     if ( | 
 |  |  |       this.routers == "outsideChainxj" || | 
 |  |  |       this.routers == "outsideChain" || | 
 |  |  |       this.routers == "outsideChainwt" | 
 |  |  |     ) { | 
 |  |  |       this.routertf = false; | 
 |  |  |     } | 
 |  |  |     var startIndex = this.routers.indexOf("param5=") + "param5=".length; // 找到第一个字符的位置 | 
 |  |  |     this.routertf = JSON.parse(this.routers.substring(startIndex)); // 截取从 'param5=' 之后的内容 | 
 |  |  |   }, | 
 |  |  |   metaInfo() { | 
 |  |  |     return { |