Fix:旅居分享问题

This commit is contained in:
linxi
2025-12-10 18:23:12 +08:00
parent eaa36dcf44
commit 1f4ea5c0c8
6 changed files with 67 additions and 8 deletions
+2
View File
@@ -839,6 +839,7 @@ export default {
onLoad(options) {
const id = options.id || ''
this.id = id
if (id) {
this.partnerId = options.partnerId || null
} else {
@@ -847,6 +848,7 @@ export default {
const query = options ? decodeURIComponent(options.scene) : decodeURIComponent(obj.query.scene)
this.partnerId = getUrlParam(query, 'partnerId') || null
this.id = getUrlParam(query, 'id') || null
}
}
if (this.partnerId) cookie.set('spread', this.partnerId)