|
@ -432,6 +432,25 @@ Page({ |
|
|
url: '/subpages/monthlyReport/pages/monthlyIndex/monthlyIndex?monthlyType=publish' |
|
|
url: '/subpages/monthlyReport/pages/monthlyIndex/monthlyIndex?monthlyType=publish' |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
logout(){ |
|
|
|
|
|
api.logout().then(function (res) { |
|
|
|
|
|
// $wuxToast().show({
|
|
|
|
|
|
// type: 'text',
|
|
|
|
|
|
// duration: 3000,
|
|
|
|
|
|
// color: '#fff',
|
|
|
|
|
|
// text: '退出成功',
|
|
|
|
|
|
// success: () => console.log('')
|
|
|
|
|
|
// })
|
|
|
|
|
|
console.log(wx.getStorageSync('token') + "************" + wx.getStorageSync('userTagKey')) |
|
|
|
|
|
wx.setStorageSync('token', '') |
|
|
|
|
|
wx.setStorageSync('userTagKey', '') |
|
|
|
|
|
wx.setStorageSync('currentGrid', '') |
|
|
|
|
|
console.log(wx.getStorageSync('token') + "************" + wx.getStorageSync('userTagKey')) |
|
|
|
|
|
wx.reLaunch({ |
|
|
|
|
|
url: '../../pages/login/login' |
|
|
|
|
|
}) |
|
|
|
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
}) |
|
|
}) |