uni-simple-router路由组件的使用问题

发布时间 2023-04-01 21:02:26作者: foko

1、uni-simple-router路由组件导致无法使用eventChannel 进行页面跳转传值——使用路由导航传值

2、导致onBackPress事件被阻止一次后失效——使用路由暴力解锁。

const router = createRouter({
	platform: process.env.VUE_APP_PLATFORM,  
	detectBeforeLock: (router, to, navType) => {
		router.$lockStatus=false;
	},
	routes: [...ROUTES]
});