fix(projects): 修复页面缓存

This commit is contained in:
Soybean
2021-09-22 16:56:25 +08:00
parent 4f05095336
commit fa0a907941
21 changed files with 332 additions and 136 deletions

View File

@ -4,7 +4,6 @@
<nav-card :loading="loading" />
</div>
</template>
<script lang="ts" setup>
import { onActivated } from 'vue';
import { useLoading } from '@/hooks';

View File

@ -1,18 +0,0 @@
<template>
<div></div>
</template>
<script lang="ts" setup>
import { useRoute, useRouter } from 'vue-router';
const { query } = useRoute();
const router = useRouter();
function init() {
const redirect = (query.redirectUrl as string) || '/';
router.replace(redirect);
}
init();
</script>
<style scoped></style>