pages/usercenter/index.js
@@ -49,9 +49,14 @@ }, onClickCell({ currentTarget }) { const { type } = currentTarget.dataset; const { type, url } = currentTarget.dataset; wx.navigateTo({ url }); return switch (type) { case 'clue': { wx.navigateTo({ url: '/pages/cluetask/home/index' }); break; } case 'supervision': { wx.navigateTo({ url: '/pages/inspection/scene/index' }); break; @@ -90,6 +95,11 @@ }, logout() { app.globalData.onLaunch.forEach(fun => { if (typeof fun === 'function') { fun(); } }); wx.reLaunch({ url: '/pages/usercenter/login/login-home/index', });