路由二级目录

This commit is contained in:
xiaoaojiao
2025-09-14 23:32:04 +08:00
parent 58729f6b28
commit 2ee3758c30
6 changed files with 20 additions and 10 deletions

View File

@@ -80,11 +80,11 @@ const handleLoginSuccess = async () => {
await initUserGameInfos(true, true)
}
if (isLogin()) {
handleLoginSuccess()
} else {
userStatus(handleLoginSuccess)
}
// if (isLogin()) {
// handleLoginSuccess()
// } else {
// userStatus(handleLoginSuccess)
// }
const getUserLottery = async () => {
const result = await Request("lottery", { pool: "all" }, "GET")
if (result.res.status === 200) {

View File

@@ -91,10 +91,10 @@ const showPhotoSquare=()=>{
}
watch(() => myPhotoValue, async (newVal) => {
console.log(newVal)
if (!newVal) {
return
}
isMyPhotoVisible.value = true;
}, { immediate: true })

View File

@@ -11,13 +11,12 @@ import { Storage, generateQR } from "../libs/utils"
const props = defineProps({
show: false
})
watch(() => props.show, async (newVal) => {
if (!newVal) {
return
}
fetchImages();
})
},{immediate:true})
const emit = defineEmits(['go-photo-square', 'update:show']);
const router = useRouter();

View File

@@ -2,7 +2,7 @@ import { createRouter, createWebHistory } from 'vue-router'
import routes from './routes' // 导入路由定义
const router = createRouter({
history: createWebHistory(),
history: createWebHistory('faceFamily'),
routes
})