|
@@ -244,6 +244,15 @@ onUnload(async () => {
|
|
|
duration: viewDuration.value.toString(),
|
|
|
})
|
|
|
})
|
|
|
+onHide(async () => {
|
|
|
+ viewDuration.value = dayjs().diff(viewStartAt.value, 'seconds')
|
|
|
+ const { data, code } = await createBrowseHistory({
|
|
|
+ stylistId: id.value,
|
|
|
+ bizType: 3,
|
|
|
+ // bizId: '1',
|
|
|
+ duration: viewDuration.value.toString(),
|
|
|
+ })
|
|
|
+})
|
|
|
onShareTimeline(() => ({
|
|
|
title: designerInfo.value?.homePageName
|
|
|
? designerInfo.value?.homePageName
|