feat:vue-element-admin升级改造vue3

This commit is contained in:
有来技术
2021-11-21 23:38:54 +08:00
parent 0091a5fab2
commit fe8a7e2c31
25 changed files with 1463 additions and 164 deletions

View 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>