seimin 1 miesiąc temu
rodzic
commit
5401d4e241

+ 3 - 3
proxy.conf.json

@@ -1,6 +1,6 @@
1 1
 {
2 2
   "/service": {
3
-		"target": "http://192.168.3.108",
3
+		"target": "http://192.168.8.108",
4 4
     "logLevel": "debug",
5 5
     "changeOrigin": true,
6 6
     "pathRewrite": {
@@ -8,7 +8,7 @@
8 8
     }
9 9
   },
10 10
   "/file": {
11
-    "target": "http://192.168.3.108",
11
+    "target": "http://192.168.8.108",
12 12
     "logLevel": "debug",
13 13
     "changeOrigin": true,
14 14
     "pathRewrite": {
@@ -16,7 +16,7 @@
16 16
     }
17 17
   },
18 18
   "/record": {
19
-    "target": "http://192.168.3.108",
19
+    "target": "http://192.168.8.108",
20 20
     "logLevel": "debug",
21 21
     "changeOrigin": true,
22 22
     "pathRewrite": {

+ 2 - 1
src/app/views/new-statistics/components/custom-tabs/custom-tabs.component.ts

@@ -23,7 +23,8 @@ export class CustomTabsComponent implements OnInit {
23 23
 
24 24
   closeTab(path: string, event: MouseEvent): void {
25 25
     event.stopPropagation();
26
-    this.tabService.closeTab(path);
26
+    let newPath = this.tabService.closeTab(path);
27
+    this.selectTabEmit.emit(newPath.split('/').reverse()[0])
27 28
   }
28 29
 
29 30
   selectTab(path: string): void {

+ 1 - 0
src/app/views/new-statistics/services/tab.service.ts

@@ -89,6 +89,7 @@ export class TabService {
89 89
         replaceUrl: true
90 90
       });
91 91
     }
92
+    return newActiveTab!.path;
92 93
   }
93 94
 
94 95
   private getTitleFromRoute(route: ActivatedRouteSnapshot): string {