add: 添加外链功能

This commit is contained in:
xiaoxian521
2021-06-29 23:35:30 +08:00
parent 6b36c93779
commit a8bc76ed9c
8 changed files with 118 additions and 34 deletions

View File

@@ -61,7 +61,7 @@ export interface ContextProps {
import { useRouter, useRoute, Router } from "vue-router";
import { initRouter } from "/@/router/index";
import { initRouter } from "/@/router";
export default defineComponent({
name: "Info",
@@ -135,9 +135,8 @@ export default defineComponent({
username: "admin",
accessToken: "eyJhbGciOiJIUzUxMiJ9.test"
});
initRouter("admin").then((router: Router) => {
router.push("/");
});
initRouter("admin").then((router: Router) => {});
router.push("/");
};
onBeforeMount(() => {