common.js 331 字节
Newer Older
DCloud_JSON's avatar
1.0.12  
DCloud_JSON 已提交
1 2 3 4 5 6 7 8 9 10 11 12
const uniIdCo = uniCloud.importObject("uni-id-co")
export default {
	async logout() {
		await uniIdCo.logout()
		uni.removeStorageSync('uni_id_token');
		uni.setStorageSync('uni_id_token_expired', 0)
		uni.redirectTo({
			url: '/uni_modules/uni-id-pages/pages/login/login-withoutpwd',
		});
		uni.$emit('uni-id-pages-logout')
	},
}