1
This commit is contained in:
@@ -14,6 +14,8 @@
|
||||
const emit = defineEmits(['view-type'])
|
||||
const query = computed(() => router.currentRoute.value.query)
|
||||
const visitRecordId = computed(() => query.value.visitRecordId)
|
||||
import { useGenerateStore } from '@/stores'
|
||||
const generateStore = useGenerateStore()
|
||||
|
||||
onMounted(() => {
|
||||
emit('view-type', 1)
|
||||
@@ -28,7 +30,8 @@
|
||||
const onLoad = () => {
|
||||
loading.value = true
|
||||
const http = visitRecordId.value ? getTryOnEffectFavoriteList : getTryOnEffectStyleList
|
||||
http(visitRecordId.value)
|
||||
const id = visitRecordId.value || generateStore.visitRecordId;
|
||||
http(id)
|
||||
.then((data) => {
|
||||
data?.forEach((v) => {
|
||||
const obj = {
|
||||
|
||||
Reference in New Issue
Block a user