Compare commits

...

2 Commits

Author SHA1 Message Date
李志鹏
73ae6744ab Merge branch 'main' of http://18.167.251.121:10003/aidlab/lanecarford_front
All checks were successful
git提交控制 AiDA WEB-Node.js main 分支构建部署 / build (20.19.0) (push) Has been skipped
2025-12-29 16:35:02 +08:00
李志鹏
2b42ef6ab7 Outfit收藏 2025-12-29 16:34:55 +08:00
2 changed files with 11 additions and 4 deletions

View File

@@ -7,7 +7,9 @@
import {
getGenerateHistoricals,
setTryOnEffectFavorite,
cancelTryOnEffectFavorite
cancelTryOnEffectFavorite,
cancelStyleFavorite,
setStyleFavorite
} from '@/api/workshop'
import { useRouter } from 'vue-router'
import MyEvent from '@/utils/myEvent'
@@ -113,10 +115,15 @@
const isLoveLoading = ref(false)
const onLoveItem = (v) => {
if (isLoveLoading.value) return
const http = v.isFavorite ? cancelTryOnEffectFavorite : setTryOnEffectFavorite
var http
if (navActive.value === 'Outfit') {
http = v.isFavorite ? cancelStyleFavorite : setStyleFavorite
} else {
http = v.isFavorite ? cancelTryOnEffectFavorite : setTryOnEffectFavorite
}
isLoveLoading.value = true
v.isFavorite = !v.isFavorite
http(v.tryOnId)
http(v.id)
.then(() => {
isLoveLoading.value = false
})

View File

@@ -38,7 +38,7 @@ const onContinue = ()=>{
if(!isHistoryFlow.value){
router.push({ path: 'uploadFace', query: {...query.value} })
}else{
router.push({ path: 'creation', query: {...query.value} })
router.push({ path: 'creation', query: {...query.value, active: FlowType.H_TRYON } })
}
}