123456789101112131415161718192021222324252627282930313233 |
- export function navigateTo(object: navigateTo.Option) {
- if (getCurrentPages().length > 9) {
- redirectTo(object as redirectTo.Option)
- } else {
- wx.navigateTo(object)
- }
- }
- export function navigateBack(object: navigateBack.Option) {
- wx.navigateBack(object)
- }
- export function switchTab(object: switchTab.Option) {
- wx.switchTab(object)
- }
- export function redirectTo(object: redirectTo.Option) {
- wx.redirectTo(object)
- }
- export function reLaunch(object: reLaunch.Option) {
- wx.reLaunch(object)
- }
- const Navi = {
- navigateTo,
- navigateBack,
- switchTab,
- redirectTo,
- reLaunch,
- }
- export default Navi
|