|
|
@@ -29,7 +29,7 @@ export class ServiceRegisterConfigComponent implements AfterViewInit {
|
|
29
|
29
|
{ title: '注册', name: 'register', icon: 'add', color: 'primary' },
|
|
30
|
30
|
{ title: '刷新', name: 'refresh', icon: 'refresh', color: 'accent' }
|
|
31
|
31
|
];
|
|
32
|
|
- registering = false;
|
|
|
32
|
+ //registering = false;
|
|
33
|
33
|
|
|
34
|
34
|
ngAfterViewInit(): void {
|
|
35
|
35
|
console.log('ServiceRegisterConfigComponent ngAfterViewInit');
|
|
|
@@ -213,12 +213,12 @@ export class ServiceRegisterConfigComponent implements AfterViewInit {
|
|
213
|
213
|
|
|
214
|
214
|
onRegister() {
|
|
215
|
215
|
console.log('注册按钮被点击');
|
|
216
|
|
- this.registering = true;
|
|
|
216
|
+ //this.registering = true;
|
|
217
|
217
|
this.headerButtons[0].loading = true;
|
|
218
|
218
|
|
|
219
|
219
|
this.configMetaService.initConfigMeta().subscribe({
|
|
220
|
220
|
next: (result: any) => {
|
|
221
|
|
- this.registering = false;
|
|
|
221
|
+ // this.registering = false;
|
|
222
|
222
|
this.headerButtons[0].loading = false;
|
|
223
|
223
|
//this.errorMessage = null;
|
|
224
|
224
|
if (result.success) {
|
|
|
@@ -237,7 +237,7 @@ export class ServiceRegisterConfigComponent implements AfterViewInit {
|
|
237
|
237
|
}
|
|
238
|
238
|
},
|
|
239
|
239
|
error: (error) => {
|
|
240
|
|
- this.registering = false;
|
|
|
240
|
+ // this.registering = false;
|
|
241
|
241
|
this.headerButtons[0].loading = false;
|
|
242
|
242
|
console.error('注册请求失败:', error);
|
|
243
|
243
|
}
|