This commit is contained in:
许允枞 2025-03-10 16:07:46 +08:00
parent b69588d115
commit 4f08f9be50

View File

@ -195,10 +195,17 @@
return
}
if(res.code == 200){
uni.setStorageSync('userinfo',res.user)
uni.setStorageSync('roleSelect','shop')
uni.hideLoading();
this.goselect()
if (res.data.shop == true) {
uni.setStorageSync('userinfo',res.user)
uni.setStorageSync('roleSelect','shop')
uni.hideLoading();
this.goselect()
}else {
uni.showToast({
title: '您不是商户,请选择员工登录',
icon: 'none'
})
}
}
})