优化大屏的返回操作
This commit is contained in:
parent
461a82ad2d
commit
37d9a2de00
@ -4,11 +4,12 @@
|
|||||||
<img src="@/assets/images/carOverview/close.png" alt="">
|
<img src="@/assets/images/carOverview/close.png" alt="">
|
||||||
</a> -->
|
</a> -->
|
||||||
<a @click="closePage">
|
<a @click="closePage">
|
||||||
<img src="../assets/images/dataBoard/blueTheme2/close.png" alt="" v-if="enabledProjectV2==4">
|
<img style="width: 100%" src="../assets/images/dataBoard/blueTheme2/close.png" alt="" v-if="enabledProjectV2==4">
|
||||||
<img src="@/assets/images/carOverview/close.png" alt="" v-else>
|
<img style="width: 100%" src="@/assets/images/carOverview/close.png" alt="" v-else>
|
||||||
</a>
|
</a>
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
@ -18,17 +19,18 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
closePage() {
|
closePage() {
|
||||||
|
// this.$router.back()
|
||||||
// console.log(this.$route.path)
|
// console.log(this.$route.path)
|
||||||
// getDockingUrlApi().then((res)=>{
|
// getDockingUrlApi().then((res)=>{
|
||||||
// console.log('路径',res)
|
// console.log('路径',res)
|
||||||
// })
|
// })
|
||||||
|
|
||||||
// if(this.$route.path.indexOf('/project/dataBoard') != -1 || this.$route.path.indexOf('/project/videoOverview') != -1 || this.$route.path.indexOf('/project/environmentalOverview') != -1 || this.$route.path.indexOf('/project/projectSummary') != -1 || this.$route.path.indexOf('/project/imgRanging') != -1 || this.$route.path.indexOf('/project/warningManage') != -1){
|
if (this.$route.path.indexOf('/project/dataBoard') != -1 || this.$route.path.indexOf('/project/videoOverview') != -1 || this.$route.path.indexOf('/project/environmentalOverview') != -1 || this.$route.path.indexOf('/project/projectSummary') != -1 || this.$route.path.indexOf('/project/imgRanging') != -1 || this.$route.path.indexOf('/project/warningManage') != -1) {
|
||||||
// // console.log(window.location.href.split('#/')[0]+'#/projectIndex')
|
console.log(window.location.href.split('#/')[0] + '#/projectIndex')
|
||||||
// // window.location.href = window.location.href.split('#/')[0] + '#/projectIndex' //注释
|
window.location.href = window.location.href.split('#/')[0] + '#/projectIndex' //注释
|
||||||
// } else{
|
} else {
|
||||||
// window.history.back()
|
window.history.back()
|
||||||
// }
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -37,15 +39,18 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.closeBtn {
|
.closeBtn {
|
||||||
width: 25px;
|
width: 16px;
|
||||||
height: 25px;
|
height: 16px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 6px;
|
right: 6px;
|
||||||
top: 6px;
|
top: 6px;
|
||||||
z-index: 9999;
|
z-index: 9999;
|
||||||
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
outline: none;
|
outline: none;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user