24 lines
385 B
Vue
24 lines
385 B
Vue
<template>
|
|
<div></div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: "RedirectPage",
|
|
created() {
|
|
const { params, query } = this.$route;
|
|
const { path } = params;
|
|
if (path) {
|
|
this.$router.replace({ path: `/${path}`, query });
|
|
} else {
|
|
this.$router.replace({ path: `/`, query });
|
|
}
|
|
},
|
|
render(h) {
|
|
return h();
|
|
}
|
|
};
|
|
</script>
|
|
|
|
<style>
|
|
</style> |