@jx3box/jx3box-common-ui 6.5.9 → 6.6.1

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": "6.5.9",
3
+ "version": "6.6.1",
4
4
  "description": "JX3BOX UI",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -30,7 +30,7 @@
30
30
  "last 2 versions"
31
31
  ],
32
32
  "dependencies": {
33
- "@jx3box/jx3box-comment-ui": "^1.7.2",
33
+ "@jx3box/jx3box-comment-ui": "^1.7.3",
34
34
  "@jx3box/jx3box-common": "^7.6.1",
35
35
  "@jx3box/jx3box-data": "^3.0.3",
36
36
  "@jx3box/jx3box-editor": "^1.6.2",
@@ -62,6 +62,8 @@ export default {
62
62
  },
63
63
  uid: function (newval) {
64
64
  this.user_id = newval ;
65
+ this.getDecoration()
66
+
65
67
  },
66
68
  },
67
69
  methods: {
@@ -73,7 +75,10 @@ export default {
73
75
  return __imgPath + `decoration/images/${val}/${type}.png`;
74
76
  },
75
77
  getDecoration(){
76
- let decoration_sidebar=sessionStorage.getItem('decoration_sidebar'+this.uid)
78
+ if(!this.user_id){
79
+ return;
80
+ }
81
+ let decoration_sidebar=sessionStorage.getItem('decoration_sidebar'+this.user_id)
77
82
  if(decoration_sidebar == 'no'){
78
83
  this.bg =""
79
84
  return;
@@ -87,7 +92,7 @@ export default {
87
92
  let res=data.data.data
88
93
  if(res.length==0){
89
94
  //空 则为无主题,不再加载接口,界面设No
90
- sessionStorage.setItem('decoration_sidebar'+this.uid,'no')
95
+ sessionStorage.setItem('decoration_sidebar'+this.user_id,'no')
91
96
  this.bg =""
92
97
  return;
93
98
  }
@@ -95,11 +100,11 @@ export default {
95
100
  return val.type === 'sidebar'
96
101
  })
97
102
  if(decoration.length>0){
98
- sessionStorage.setItem('decoration_sidebar'+this.uid,JSON.stringify(decoration[0]))
103
+ sessionStorage.setItem('decoration_sidebar'+this.user_id,JSON.stringify(decoration[0]))
99
104
  this.setDecoration(decoration[0])
100
105
  }else{
101
106
  //空 则为无主题,不再加载接口,界面设No
102
- sessionStorage.setItem('decoration_sidebar'+this.uid,'no')
107
+ sessionStorage.setItem('decoration_sidebar'+this.user_id,'no')
103
108
  this.bg =""
104
109
  }
105
110
  })
@@ -124,9 +129,7 @@ export default {
124
129
  created: function () {
125
130
  this.isOpen = this.open === undefined ? true : this.open;
126
131
  this.user_id = this.uid
127
- if(this.user_id){
128
- this.getDecoration()
129
- }
132
+ this.getDecoration()
130
133
  },
131
134
  };
132
135
  </script>