Commit 68d55e91a0d3efeb3494de277c799803b917ed64

Authored by 郭娟
1 parent ec30ea66
Exists in dev

fix:提交数据大屏代码

frontend/front/src/components/layouts/HtSideBar/components/HtMenuItem.vue
... ... @@ -78,9 +78,11 @@
78 78 return path.resolve(this.fullPath, routePath)
79 79 },
80 80 handleLink() {
81   - const routePath = this.routeChildren.path
82   - const target = this.routeChildren.meta.target
83   -
  81 + const routePath = this.routeChildren.path;
  82 + const target = this.routeChildren.meta.target;
  83 + console.log('打印是否触发这个routePath',isExternal(routePath));
  84 + console.log('打印是否触发这个fullPath',isExternal(this.fullPath));
  85 + console.log('打印是否触发这个target',target);
84 86 if (target === '_blank') {
85 87 if (isExternal(routePath)) {
86 88 window.open(routePath)
... ... @@ -102,7 +104,12 @@
102 104 } else if (
103 105 this.$route.path !== path.resolve(this.fullPath, routePath)
104 106 ) {
105   - this.$router.push(path.resolve(this.fullPath, routePath))
  107 + console.log('打印是否触发这个事件',this.$route.path,this.fullPath )
  108 + if(this.fullPath == '/dataLargeScreen'){
  109 + window.open('http://192.168.145.61:22582/yqyp-dp/#/chart/preview/1826433289372565505?id=1221', '_blank');
  110 + }else{
  111 + this.$router.push(path.resolve(this.fullPath, routePath))
  112 + }
106 113 }
107 114 }
108 115 },
... ...
frontend/front/src/views/pages/dataLargeScreen/index.vue 0 → 100644
... ... @@ -0,0 +1,15 @@
  1 +<template>
  2 + <div>
  3 + 测试数据大屏
  4 + </div>
  5 +</template>
  6 +
  7 +<script>
  8 +export default {
  9 +name: "index"
  10 +}
  11 +</script>
  12 +
  13 +<style scoped>
  14 +
  15 +</style>
... ...