perf: redirect

This commit is contained in:
xiaoxian521
2022-03-14 12:43:02 +08:00
parent bef0d9234e
commit b36850f79f
3 changed files with 1 additions and 7 deletions

View File

@@ -1,20 +0,0 @@
<script setup lang="ts">
import { unref } from "vue";
import { useRouter } from "vue-router";
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></div>
</template>

View File

@@ -1,6 +0,0 @@
export type infoType = {
svg?: string;
code?: number;
info?: string;
accessToken?: string;
};