beer-network 1.1.1-alpha.13 → 1.1.1-alpha.15

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/session.js +2 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "beer-network",
3
3
  "private": false,
4
- "version": "1.1.1-alpha.13",
4
+ "version": "1.1.1-alpha.15",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "pub-w": "tsc && copy package.json .\\dist\\package.json && npm publish ./dist",
package/session.js CHANGED
@@ -28,7 +28,8 @@ export class Session {
28
28
  * @param url 退出之后的地址.
29
29
  */
30
30
  static logout(url) {
31
- localStorage.clear();
31
+ localStorage?.clear();
32
+ sessionStorage?.clear();
32
33
  if (url !== undefined && url !== '') {
33
34
  window.location.href = url;
34
35
  }