@jx3box/jx3box-common-ui 7.2.3 → 7.2.4

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jx3box/jx3box-common-ui",
3
- "version": "7.2.3",
3
+ "version": "7.2.4",
4
4
  "description": "JX3BOX UI",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -129,7 +129,7 @@ export default {
129
129
  },
130
130
  loadNav() {
131
131
  try {
132
- const nav = JSON.parse(sessionStorage.getItem("nav"));
132
+ const nav = sessionStorage.getItem("nav") && JSON.parse(sessionStorage.getItem("nav")) || null;
133
133
  if (nav) {
134
134
  this.nav = nav;
135
135
  } else {
@@ -159,7 +159,7 @@ export default {
159
159
  }
160
160
  });
161
161
  getBoxcoinStatus().then((res) => {
162
- this.boxcoin_enable = !!~~res.data.data.val;
162
+ this.boxcoin_enable = !!~~res.data?.data?.val;
163
163
  });
164
164
  },
165
165
  // 用户打赏