ly 3 years ago
parent
commit
43465e82db
2 changed files with 10 additions and 1 deletions
  1. 5 0
      ui/src/router/index.js
  2. 5 1
      ui/src/views/monitor/elec/index.vue

+ 5 - 0
ui/src/router/index.js

@@ -56,6 +56,11 @@ export const constantRoutes = [
     component: (resolve) => require(['@/views/error/401'], resolve),
     hidden: true
   },
+  {
+    path: '/BCCdashboard',
+    component: (resolve) => require(['@/views/monitor/elec/index'], resolve),
+    hidden: true
+  },
   {
     path: '',
     component: Layout,

+ 5 - 1
ui/src/views/monitor/elec/index.vue

@@ -224,7 +224,11 @@
         }
       },
       openNewWindow() {
-        window.open('index.html#/bccHome?redirect=%2Findex');//path是文件的全路径地址cpms/index.html#/login?redirect=%2Findex
+        let routeData = this.$router.resolve({
+          path: "/BCCdashboard",
+        });
+        window.open(routeData.href, '_blank');
+        // window.open('index.html#/bccHome?redirect=%2Findex');//path是文件的全路径地址cpms/index.html#/login?redirect=%2Findex
       }
     }
   };