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

posted @ 2023-01-14 01:01  凯宾斯基  阅读(37)  评论(0编辑  收藏  举报