feat: 创建了请求的接口

This commit is contained in:
zoujing
2026-04-02 16:46:09 +08:00
parent 2152029562
commit b2ca694fbd
7 changed files with 47 additions and 18 deletions

View File

@@ -7,11 +7,14 @@
</template>
<script setup>
import { Session } from '@utils/storage'
const router = useRouter()
const KeepAliveList = ref([])
router.beforeEach((to, from, next) => {
const keepAlive = to?.meta?.keepAlive
Session.set('token', to.query.token)
if (!router.hasRoute(to.name)) {
router.push('/home')