修复导航点击失效问题

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

@@ -86,6 +86,7 @@
<script>
import Layout from './Layout.vue'
import Sortable from 'sortablejs'
import {mapActions} from "vuex"
export default {
name: 'Add',
@@ -136,6 +137,7 @@ export default {
this.getInfo().then(() => this.$route.params?.id && this.onChange(this.$route.params))
},
methods: {
...mapActions(['closePage']),
getInfo() {
let {id} = this.$route.query
if (!id) return Promise.reject()
@@ -252,6 +254,7 @@ export default {
},
cancel() {
this.closePage()
this.$router.push({})
},