This commit is contained in:
yixu
2025-09-14 22:48:26 +08:00
parent f59feef223
commit 9f84fd60b3
2 changed files with 14 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
<script setup>
import { ref, computed, watch, onMounted } from "vue"
import { useRouter } from 'vue-router'
import { useRouter, useRoute } from 'vue-router'
import faceFamily from "../assets/audio/faceFamily.mp3"
import MyPhoto from './MyPhoto.vue'
import PhotoSquare from './PhotoSquare.vue'
@@ -75,6 +75,8 @@ const navigateSelectTemplatePage = () => {
name: 'selectTemplateV2'
})
}
const route = useRoute()
const myPhotoValue = route.query.myPhotoValue;
const isMyPhotoVisible = ref(false);
const isPhotoSquareVisible = ref(false);
@@ -88,6 +90,13 @@ const showPhotoSquare=()=>{
isPhotoSquareVisible.value = true;
}
watch(() => myPhotoValue, async (newVal) => {
if (!newVal) {
return
}
isMyPhotoVisible.value = true;
}, { immediate: true })
const loginShow = ref(false)
// 登录状态
const userStatus = async (callback) => {