fix(equipmentMember): 移除删除主用户时的子用户检查限制

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
17792275749
2026-06-12 17:33:28 +08:00
co-authored by Claude Opus 4.7
parent f10ce6656f
commit 24fda6becc
@@ -244,14 +244,14 @@ Page({
return
}
if (target.userType === 1) {
const hasSubUser = this.data.employeeList.some(m => m.userType !== 1)
|| this.data.familyList.some(m => m.userType !== 1)
if (hasSubUser) {
wx.showToast({ title: '请先删除所有普通用户', icon: 'none' })
return
}
}
// if (target.userType === 1) {
// const hasSubUser = this.data.employeeList.some(m => m.userType !== 1)
// || this.data.familyList.some(m => m.userType !== 1)
// if (hasSubUser) {
// wx.showToast({ title: '请先删除所有普通用户', icon: 'none' })
// return
// }
// }
this.setData({
showDeleteModal: true,