feat: 调整布局

This commit is contained in:
duanshuwen
2025-12-07 16:37:24 +08:00
parent 84300791a0
commit b643972d21
3 changed files with 14 additions and 9 deletions

View File

@@ -27,7 +27,9 @@ import { useRouter } from "vue-router";
const router = useRouter();
const currentId = ref(1)
const handleClick = async (item: any) => {
console.log("🚀 ~ handleClick ~ item:", item)
currentId.value = item.id
router.push(item.url);
}

View File

@@ -87,7 +87,12 @@ router.beforeEach((to: any, from: any, next: any) => {
return;
}
if (token && to.path !== "/home") {
if (token && to.path === "/login") {
next({ path: "/home" });
return;
}
if (token && to.path === "/") {
next({ path: "/home" });
return;
}

View File

@@ -1,11 +1,9 @@
<template>
<Layout>
<div class="bg-white box-border w-full h-full rounded-[16px] p-[20px]">
<RateTitleSection />
<RatePanelSection />
<RateContentSection />
</div>
</Layout>
<div class="bg-white box-border w-full h-full rounded-[16px] p-[20px]">
<RateTitleSection />
<RatePanelSection />
<RateContentSection />
</div>
</template>
<script setup lang="ts" name="Rate">