朱嘉伟

Results 12 comments of 朱嘉伟

目前是根据URL深度(反斜杠数)来判断前进后退的,比如从`/user`到`/user/_id`则为前进,反之后退。 但你这样修改后就不再支持这个功能了。

> `if (toDepth === fromDepth) { if (lastPath === to.path && toDepth < fromDepth) { transitionType = 'back' } else { transitionType = 'forward' }` > 这是你原本的代码有个BUG,在if (**toDepth === fromDepth**)的情况下,if...

你可以不要把原来的if删掉,而是基于原来的条件`||`上你的条件,这样就完美了。

的确是Bug,去掉`&& toDepth < fromDepth`就能正常使用了,所以没必要加个数组的。

1.4.0 is not backward compatible, you should specify the version: `npm i [email protected] --save` ``` "dependencies": { "vueg": "1.3.4" } ```

Github我的主页有邮箱地址 ------------------ 原始邮件 ------------------ 发件人: specialzxw

QQ1oo-594-5485 ------------------ 原始邮件 ------------------ 发件人: specialzxw

Vue3.0发布前,本项目不再维护,以后会考虑这个需求的。

Sorry your commits are behind this responsitory, and i have no time to solve code conflicts.

我也是一样的情况