vue组件更新--(做eChart图表用到)
<template>
<router-view v-if="isRouterAlive"/>
</template>
<script>
export default {
 data () {
   return {
     isRouterAlive: true
   }
 },
 methods: {
   reload () {
     this.isRouterAlive = false
     this.$nextTick(() => (this.isRouterAlive = true))
   }   
 }
}
</script>
https://tangjiusheng.com/vue/1491.html
配和监听浏览器大小,可以实现echar图表无法相对定位问题
https://www.cnblogs.com/kaibindirver/p/13934818.html
                    
                
                
            
        
浙公网安备 33010602011771号