nextboy / megalo-router Goto Github PK
View Code? Open in Web Editor NEW配合网易小程序框架megalo使用的router,尽量保持与vue-router一致的开发体验,减少技术成本,方便项目从web迁移到小程序
配合网易小程序框架megalo使用的router,尽量保持与vue-router一致的开发体验,减少技术成本,方便项目从web迁移到小程序
由于老的小程序页面没用megalo生成对应vue实例,因此使用时会报错。
考虑增加对$mp是否存在的判断:
if (this.$mp && this.$mp.page && this.$mp.page.route) {
...
}
rt
在普通页面内进行 this.$router.push tab页,会 报错 onReady function;at api navigateTo fail callback function。无法正确跳转至想要的 tab页。
望解决。目前采用的方案,我只能是先使用 wx.switchTab 来进行 跳转先
需要在跳转之前做一些判断
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.