Akryum / Akryum/vue-router-multi-view

activated / deactivated functions are triggered much time when changing route

未關閉
#35 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
JavaScript
星號
86
分支
9
PR 合併指標
30 天內沒有已合併 PR

描述

Hi there,

Thank you for good repo. Now I have an error like above title.
When I change route, activated / deactivated hooks will be called many times.

```
activated() {
console.log("---> activated", this.$attrs["data-route-name"]);
},
deactivated() {
console.log("<--- deactivated", this.$attrs["data-route-name"]);
},
```
Below is logs when switching from 'app-chat' to 'app-channel'

```
16:09:37.454 index.vue:79 <--- deactivated app-chat
16:09:37.455 index.vue:71 ---> activated app-chat
16:09:37.456 index.vue:79 <--- deactivated app-chat

16:09:37.458 index.vue:72 ---> activated app-channel
16:09:37.459 index.vue:80 <--- deactivated app-channel
16:09:37.461 index.vue:72 ---> activated app-channel
```

Could you help me?

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。