n20-common-lib 2.6.85 → 2.6.86
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -154,7 +154,7 @@ export default {
|
|
|
154
154
|
methods: {
|
|
155
155
|
async getSessionData() {
|
|
156
156
|
const { data } = await axios.post(
|
|
157
|
-
`/bems/prod_1.0/user/pageHabit/list?t=${Date.now()}`,
|
|
157
|
+
`/bems/prod_1.0/user/pageHabit/list?t=${Date.now() + Math.random()}`,
|
|
158
158
|
{
|
|
159
159
|
userNo: this.userNo,
|
|
160
160
|
pageId: this.pId
|
|
@@ -163,14 +163,19 @@ export default {
|
|
|
163
163
|
)
|
|
164
164
|
if (data) {
|
|
165
165
|
this.$set(
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
166
|
+
this.pageRemote,
|
|
167
|
+
this.pageKey.size,
|
|
168
|
+
JSON.parse(data)[this.pageKey.size] || this.pageObj[this.pageKey.size]
|
|
169
|
+
)
|
|
170
|
+
this.$set(
|
|
171
|
+
this.pageObj,
|
|
172
|
+
this.pageKey.size,
|
|
173
|
+
JSON.parse(data)[this.pageKey.size] || this.pageObj[this.pageKey.size]
|
|
169
174
|
)
|
|
170
|
-
this.$set(this.pageObj, this.pageKey.size, JSON.parse(data)[this.pageKey.size] || this.pageObj[this.pageKey.size])
|
|
171
175
|
} else {
|
|
172
176
|
this.pageRemote = this.pageObj
|
|
173
177
|
}
|
|
178
|
+
sessionStorage.setItem('pageObj', JSON.stringify(this.pageObj))
|
|
174
179
|
this.$emit('change', this.pageObj)
|
|
175
180
|
},
|
|
176
181
|
async setRemoteData(data) {
|