This commit is contained in:
parent
ea4b4b40bc
commit
5537f28fd3
|
@ -128,6 +128,7 @@ window.parent.addEventListener('message', function (event) {
|
||||||
async function initContent() {
|
async function initContent() {
|
||||||
const params = {}
|
const params = {}
|
||||||
params[codeType[code]] = activityCode.value || ''
|
params[codeType[code]] = activityCode.value || ''
|
||||||
|
useStore.reset()
|
||||||
const res: any = await getContent(params)
|
const res: any = await getContent(params)
|
||||||
initData(res)
|
initData(res)
|
||||||
}
|
}
|
||||||
|
@ -195,8 +196,11 @@ const intervalData = () => {
|
||||||
|
|
||||||
onLoad(() => {
|
onLoad(() => {
|
||||||
activityCode.value = getUrlPathName()
|
activityCode.value = getUrlPathName()
|
||||||
intervalData()
|
if (
|
||||||
if (!useStore.userInfo.srcList.url || useStore.userInfo.query !== query.value) {
|
!useStore.userInfo.srcList.url ||
|
||||||
|
useStore.userInfo.query !== query.value ||
|
||||||
|
useStore.userInfo.href === window.location.href
|
||||||
|
) {
|
||||||
initContent()
|
initContent()
|
||||||
} else {
|
} else {
|
||||||
Object.assign(srcList, useStore.userInfo.srcList, {
|
Object.assign(srcList, useStore.userInfo.srcList, {
|
||||||
|
@ -207,6 +211,7 @@ onLoad(() => {
|
||||||
title: srcList.title,
|
title: srcList.title,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
intervalData()
|
||||||
})
|
})
|
||||||
|
|
||||||
onUnload(() => {
|
onUnload(() => {
|
||||||
|
|
Loading…
Reference in New Issue