设置store

This commit is contained in:
李志鹏
2025-10-24 11:47:07 +08:00
parent c1d57f2347
commit 9fff109c77
5 changed files with 79 additions and 28 deletions

View File

@@ -3,6 +3,8 @@
import FooterNavigation from '@/components/FooterNavigation.vue'
import { ref, onMounted } from 'vue'
import { useRouter } from 'vue-router'
import { useGenerateStore } from '@/stores'
const generateStore = useGenerateStore()
const emit = defineEmits(['view-type'])
onMounted(() => {
emit('view-type', 1)
@@ -11,10 +13,13 @@
const faceUrl = ref('')
// 上传照片
const handleUploadFace = () => {
generateStore.updatePhotoInfo({})
router.push({ name: 'uploadFace2' })
}
// 完成上传
// 跳过上传
const handleFinish = () => {
generateStore.updatePhotoInfo({})
generateStore.clearCustomizeInfo({})
router.push({ name: 'customize' })
}
</script>
@@ -71,7 +76,7 @@
line-height: 132%;
}
}
>.btns {
> .btns {
width: 100%;
display: flex;
justify-content: center;