@jx3box/jx3box-editor 1.6.7 → 1.6.8

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-editor",
3
- "version": "1.6.7",
3
+ "version": "1.6.8",
4
4
  "description": "JX3BOX Article & Editor",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -137,7 +137,7 @@ export default {
137
137
  this.setDecoration(JSON.parse(decoration_atcard))
138
138
  return;
139
139
  }
140
- getDecoration({using:1,user_id:this.uid}).then(data=>{
140
+ getDecoration({using:1,user_id:this.uid,type:'atcard'}).then(data=>{
141
141
  let res=data.data.data
142
142
  if(res.length==0){
143
143
  //空 则为无主题,不再加载接口,界面设No
@@ -145,17 +145,8 @@ export default {
145
145
  this.bg = ""
146
146
  return;
147
147
  }
148
- let decoration=res.filter(val => {
149
- return val.type === 'atcard'
150
- })
151
- if(decoration.length>0){
152
- sessionStorage.setItem('decoration_atcard'+this.uid,JSON.stringify(decoration[0]))
153
- this.setDecoration(decoration[0])
154
- }else{
155
- //空 则为无主题,不再加载接口,界面设No
156
- this.bg = ""
157
- sessionStorage.setItem('decoration_atcard'+this.uid,'no')
158
- }
148
+ sessionStorage.setItem('decoration_atcard'+this.uid,JSON.stringify(res[0]))
149
+ this.setDecoration(res[0])
159
150
  })
160
151
  },
161
152
  setDecoration(decoration_sidebar){