修复导航点击失效问题

This commit is contained in:
aixianling
2023-03-10 09:38:31 +08:00
parent e8d89279d6
commit 84689f602b
3 changed files with 19 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
<template>
<section class="preview">
<ai-dv-wrapper :views="[{label: '返回'}]" :theme="config.theme" @change="$router.back()" v-if="screenId" :title="info.name">
<ai-dv-wrapper :views="[{label: '返回'}]" :theme="config.theme" @change="handleBack" v-if="screenId" :title="info.name">
<ai-dv-background
:theme="config.theme"
v-if="config.length || config.theme === '1'"
@@ -12,6 +12,8 @@
</template>
<script>
import {mapActions} from "vuex"
export default {
name: "preview",
props: {
@@ -33,6 +35,7 @@ export default {
}
},
methods: {
...mapActions(['closePage']),
getDvData() {
let {id} = this.$route.query
this.instance.post(`${this.urlPrefix}/appdiylargescreen/queryLargeScreenDetailById?id=${id}`).then(res => {
@@ -41,6 +44,10 @@ export default {
this.config = JSON.parse(res.data.config).dashboard
}
})
},
handleBack() {
this.$router.back()
this.closePage()
}
},
created() {