返回问题
This commit is contained in:
parent
0098cbee1c
commit
6e2fdc6bd7
|
@ -53,7 +53,10 @@ interface SrcListType {
|
|||
title?: string
|
||||
}
|
||||
|
||||
const srcList = reactive<SrcListType>({})
|
||||
const srcList = reactive<SrcListType>({
|
||||
url: '',
|
||||
title: '',
|
||||
})
|
||||
const dataObj = reactive({})
|
||||
|
||||
function handleMessage(event: any) {
|
||||
|
@ -87,6 +90,7 @@ const getUrlPathName = () => {
|
|||
|
||||
window.parent.addEventListener('message', function (event) {
|
||||
let srcData = {}
|
||||
const timestamp = new Date().getTime()
|
||||
if (event.data.data.type === 'login') {
|
||||
srcData = {
|
||||
url: contentData.content_templates.source + `?activity_code=${query.value}`,
|
||||
|
@ -115,7 +119,8 @@ window.parent.addEventListener('message', function (event) {
|
|||
title: contentData.login_content_templates.moduledesc,
|
||||
}
|
||||
}
|
||||
Object.assign(srcList, {})
|
||||
srcList.url =
|
||||
srcList.url + (srcList.url.includes('?') ? '×tamp=' : '?timestamp=') + timestamp
|
||||
nextTick(() => {
|
||||
Object.assign(srcList, srcData)
|
||||
uni.setNavigationBarTitle({
|
||||
|
|
Loading…
Reference in New Issue