update
This commit is contained in:
@@ -364,6 +364,10 @@ const disableClick = ref(false);
|
|||||||
const isMyPhotoVisible = ref(false);
|
const isMyPhotoVisible = ref(false);
|
||||||
const isPhotoSquareVisible = ref(false);
|
const isPhotoSquareVisible = ref(false);
|
||||||
const showMyPhoto = () => {
|
const showMyPhoto = () => {
|
||||||
|
router.push({
|
||||||
|
name: 'home',
|
||||||
|
query: { myPhotoValue: true }
|
||||||
|
})
|
||||||
isMyPhotoVisible.value = true;
|
isMyPhotoVisible.value = true;
|
||||||
// displayMyPhotoBtn.value = false;
|
// displayMyPhotoBtn.value = false;
|
||||||
isPhotoSquareVisible.value = false;
|
isPhotoSquareVisible.value = false;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
import { ref, computed, watch, onMounted } from "vue"
|
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 faceFamily from "../assets/audio/faceFamily.mp3"
|
||||||
import MyPhoto from './MyPhoto.vue'
|
import MyPhoto from './MyPhoto.vue'
|
||||||
import PhotoSquare from './PhotoSquare.vue'
|
import PhotoSquare from './PhotoSquare.vue'
|
||||||
@@ -75,6 +75,8 @@ const navigateSelectTemplatePage = () => {
|
|||||||
name: 'selectTemplateV2'
|
name: 'selectTemplateV2'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
const route = useRoute()
|
||||||
|
const myPhotoValue = route.query.myPhotoValue;
|
||||||
|
|
||||||
const isMyPhotoVisible = ref(false);
|
const isMyPhotoVisible = ref(false);
|
||||||
const isPhotoSquareVisible = ref(false);
|
const isPhotoSquareVisible = ref(false);
|
||||||
@@ -88,6 +90,13 @@ const showPhotoSquare=()=>{
|
|||||||
isPhotoSquareVisible.value = true;
|
isPhotoSquareVisible.value = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
watch(() => myPhotoValue, async (newVal) => {
|
||||||
|
if (!newVal) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
isMyPhotoVisible.value = true;
|
||||||
|
}, { immediate: true })
|
||||||
|
|
||||||
const loginShow = ref(false)
|
const loginShow = ref(false)
|
||||||
// 登录状态
|
// 登录状态
|
||||||
const userStatus = async (callback) => {
|
const userStatus = async (callback) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user