mirror of
https://github.com/pure-admin/pure-admin-thin.git
synced 2025-04-26 08:17:33 +08:00
25 lines
403 B
Vue
25 lines
403 B
Vue
<script setup lang="ts">
|
|
import { unref } from "vue";
|
|
import { useRouter } from "vue-router";
|
|
|
|
defineOptions({
|
|
name: "Redirect"
|
|
});
|
|
|
|
const { currentRoute, replace } = useRouter();
|
|
|
|
const { params, query } = unref(currentRoute);
|
|
const { path } = params;
|
|
|
|
const _path = Array.isArray(path) ? path.join("/") : path;
|
|
|
|
replace({
|
|
path: "/" + _path,
|
|
query
|
|
});
|
|
</script>
|
|
|
|
<template>
|
|
<div />
|
|
</template>
|