fixed 564749c from https://gitee.com/dromara/MaxKey/pulls/39
bug fix: TokenBased 令牌内容保存
This commit is contained in:
@@ -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]}`;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user