路由二级目录
This commit is contained in:
10
src/App.vue
10
src/App.vue
@@ -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) {
|
||||
|
||||
@@ -91,10 +91,10 @@ const showPhotoSquare=()=>{
|
||||
}
|
||||
|
||||
watch(() => myPhotoValue, async (newVal) => {
|
||||
console.log(newVal)
|
||||
if (!newVal) {
|
||||
return
|
||||
}
|
||||
|
||||
isMyPhotoVisible.value = true;
|
||||
}, { immediate: true })
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -2,7 +2,7 @@ import { createRouter, createWebHistory } from 'vue-router'
|
||||
import routes from './routes' // 导入路由定义
|
||||
|
||||
const router = createRouter({
|
||||
history: createWebHistory(),
|
||||
history: createWebHistory('faceFamily'),
|
||||
routes
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user