bug fix: TokenBased 令牌内容保存
This commit is contained in:
xujialiang
2024-06-26 01:02:29 +08:00
committed by MaxKeyTop
parent f3ccc7c831
commit 0bf6213331

View File

@@ -42,6 +42,12 @@ export class AppsTokenBasedDetails extends Apps {
} else {
this.switch_status = false;
}
this.select_userPropertys = [''];
let userPropertysArray: String[] = `${this.userPropertys},`.split(',');
for (let i = 0; i < userPropertysArray.length; i++) {
this.select_userPropertys.push(`${userPropertysArray[i]}`);
}
}
override trans(): void {
@@ -50,5 +56,17 @@ export class AppsTokenBasedDetails extends Apps {
} else {
this.status = 0;
}
this.userPropertys = '';
for (let i = 0; i < this.select_userPropertys.length; i++) {
if (this.select_userPropertys[i] != '') {
if (this.userPropertys === '') {
this.userPropertys = this.select_userPropertys[i];
} else {
this.userPropertys = `${this.userPropertys},${this.select_userPropertys[i]}`;
}
}
}
}
}
}