浏览代码

解决bug

seimin 1 月之前
父节点
当前提交
5401d4e241

+ 3 - 3
proxy.conf.json

@@ -1,6 +1,6 @@
1
 {
1
 {
2
   "/service": {
2
   "/service": {
3
-		"target": "http://192.168.3.108",
3
+		"target": "http://192.168.8.108",
4
     "logLevel": "debug",
4
     "logLevel": "debug",
5
     "changeOrigin": true,
5
     "changeOrigin": true,
6
     "pathRewrite": {
6
     "pathRewrite": {
@@ -8,7 +8,7 @@
8
     }
8
     }
9
   },
9
   },
10
   "/file": {
10
   "/file": {
11
-    "target": "http://192.168.3.108",
11
+    "target": "http://192.168.8.108",
12
     "logLevel": "debug",
12
     "logLevel": "debug",
13
     "changeOrigin": true,
13
     "changeOrigin": true,
14
     "pathRewrite": {
14
     "pathRewrite": {
@@ -16,7 +16,7 @@
16
     }
16
     }
17
   },
17
   },
18
   "/record": {
18
   "/record": {
19
-    "target": "http://192.168.3.108",
19
+    "target": "http://192.168.8.108",
20
     "logLevel": "debug",
20
     "logLevel": "debug",
21
     "changeOrigin": true,
21
     "changeOrigin": true,
22
     "pathRewrite": {
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
   closeTab(path: string, event: MouseEvent): void {
24
   closeTab(path: string, event: MouseEvent): void {
25
     event.stopPropagation();
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
   selectTab(path: string): void {
30
   selectTab(path: string): void {

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

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