@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 +1 -1
- package/src/components/Author.vue +3 -12
package/package.json
CHANGED
|
@@ -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
|
-
|
|
149
|
-
|
|
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){
|