feat:vue-element-admin升级改造vue3
This commit is contained in:
15
src/views/redirect/index.vue
Normal file
15
src/views/redirect/index.vue
Normal file
@@ -0,0 +1,15 @@
|
||||
<script lang="ts">
|
||||
import {defineComponent} from "vue";
|
||||
import {useRoute, useRouter} from "vue-router";
|
||||
|
||||
export default defineComponent({
|
||||
created() {
|
||||
const {params, query} = useRoute()
|
||||
const {path} = params
|
||||
useRouter().replace({path: '/' + path, query})
|
||||
},
|
||||
render(h) {
|
||||
return h()
|
||||
}
|
||||
})
|
||||
</script>
|
||||
Reference in New Issue
Block a user