refactor(data): excludeUserId 重命名为 excludeId,语义更准确
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
e898c4d305
commit
32dd83a738
@@ -60,7 +60,7 @@ Component({
|
||||
value: 'addMember'
|
||||
},
|
||||
/** 需要排除的用户 ID(history 模式下排除当前查看的成员) */
|
||||
excludeUserId: {
|
||||
excludeId: {
|
||||
type: String,
|
||||
value: ''
|
||||
}
|
||||
@@ -117,8 +117,8 @@ Component({
|
||||
|
||||
if (this.properties.source === 'history') {
|
||||
const params: Record<string, string> = { userId }
|
||||
if (this.properties.excludeUserId) {
|
||||
params.userIdExclude = this.properties.excludeUserId
|
||||
if (this.properties.excludeId) {
|
||||
params.userIdExclude = this.properties.excludeId
|
||||
}
|
||||
get<HistoryApiItem[]>('weighingScale/v3/select/history/user', params, { loading: false })
|
||||
.then((res: any) => {
|
||||
|
||||
Reference in New Issue
Block a user