TaroXin / vue-pretty-logger

The console is more cool to use, easier to debug, and more fun log output. Enjoy the vue-pretty-logger in the vue project.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

必须写在赋值或调用函数后面吗?调试时使用不太方便

262060984 opened this issue · comments

类似这样的代码,不好使用了

this.$navigation.on('forward', (to, from) => {
      console.log('forward to', to, 'from ', from);
      this.direction = 'forward';
    });

暂时不支持在箭头函数后面声明,后续会加上这个功能

可以暂时通过声明函数的方式使用,不过这样的话就不太方便了

功能已经添加,升级 0.8.6 版本即可使用,感谢反馈