mirror of
https://gitee.com/goploy/goploy.git
synced 2024-12-02 20:20:32 +08:00
F refresh
This commit is contained in:
parent
8b4b2b546e
commit
1812a4c7d2
@ -18,7 +18,7 @@ export default defineComponent({
|
||||
cachedViews() {
|
||||
return import.meta.env.PROD === true
|
||||
? this.$store.state.tagsView.cachedViews.join(',')
|
||||
: ''
|
||||
: []
|
||||
},
|
||||
key() {
|
||||
return this.$route.path
|
||||
|
@ -1,13 +1,16 @@
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue'
|
||||
import { defineComponent, h } from 'vue'
|
||||
import { useRoute, useRouter } from 'vue-router'
|
||||
export default defineComponent({
|
||||
created() {
|
||||
const { params, query } = this.$route
|
||||
setup() {
|
||||
const route = useRoute()
|
||||
const router = useRouter()
|
||||
const { params, query } = route
|
||||
const { path } = params
|
||||
this.$router.replace({ path: '/' + path, query })
|
||||
router.push({ path: '/' + path, query })
|
||||
},
|
||||
render: (h: CallableFunction) => {
|
||||
return h() // avoid warning message
|
||||
render() {
|
||||
return h('div')
|
||||
},
|
||||
})
|
||||
</script>
|
||||
|
Loading…
Reference in New Issue
Block a user