Przeglądaj źródła

添加按钮-测试通过

qdy 1 miesiąc temu
rodzic
commit
8384c2f289

+ 4
- 4
src/app/pages/service-register-config/service-register-config.component.ts Wyświetl plik

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

Ładowanie…
Anuluj
Zapisz