diff --git a/components/config/loginPopup.vue b/components/config/loginPopup.vue index 505b765..984e97a 100644 --- a/components/config/loginPopup.vue +++ b/components/config/loginPopup.vue @@ -51,6 +51,10 @@ export default { data.shareId = uni.getStorageSync('shareId') } + if (uni.getStorageSync('id')) { + data.id = uni.getStorageSync('id') + } + if (uni.getStorageSync('state')) { data.state = uni.getStorageSync('state') } diff --git a/pages/index/index.vue b/pages/index/index.vue index e82c418..23001bd 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -62,7 +62,7 @@ ...mapState(['userInfo']), }, onLoad(option) { - const { state, shareId } = option + const { id, state, shareId } = option if (shareId) { uni.setStorageSync('shareId', shareId) @@ -71,6 +71,10 @@ if (state) { uni.setStorageSync('state', state) } + + if (id) { + uni.setStorageSync('id', id) + } if (shareId && !uni.getStorageSync('token')) { diff --git a/pages_order/sharing/article.vue b/pages_order/sharing/article.vue index 75ba383..535d88b 100644 --- a/pages_order/sharing/article.vue +++ b/pages_order/sharing/article.vue @@ -67,6 +67,10 @@ if (state) { uni.setStorageSync('state', state) } + + if (id) { + uni.setStorageSync('id', id) + } this.id = id diff --git a/pages_order/sharing/group.vue b/pages_order/sharing/group.vue index 82c481f..473485b 100644 --- a/pages_order/sharing/group.vue +++ b/pages_order/sharing/group.vue @@ -61,6 +61,10 @@ if (state) { uni.setStorageSync('state', state) } + + if (id) { + uni.setStorageSync('id', id) + } this.id = id diff --git a/pages_order/sharing/personal.vue b/pages_order/sharing/personal.vue index 1e351d8..1e34b34 100644 --- a/pages_order/sharing/personal.vue +++ b/pages_order/sharing/personal.vue @@ -60,6 +60,10 @@ if (state) { uni.setStorageSync('state', state) } + + if (id) { + uni.setStorageSync('id', id) + } this.id = id diff --git a/pages_order/sharing/video.vue b/pages_order/sharing/video.vue index cfd81fc..7d00ff1 100644 --- a/pages_order/sharing/video.vue +++ b/pages_order/sharing/video.vue @@ -71,6 +71,10 @@ if (state) { uni.setStorageSync('state', state) } + + if (id) { + uni.setStorageSync('id', id) + } this.id = id diff --git a/store/store.js b/store/store.js index acad285..3c068e6 100644 --- a/store/store.js +++ b/store/store.js @@ -63,6 +63,10 @@ const store = new Vuex.Store({ if (uni.getStorageSync('shareId')) { data.shareId = uni.getStorageSync('shareId') } + + if (uni.getStorageSync('id')) { + data.id = uni.getStorageSync('id') + } if (uni.getStorageSync('state')) { data.state = uni.getStorageSync('state')