@jx3box/jx3box-editor 1.3.0 → 1.3.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 +1 -1
- package/src/Resource.vue +7 -9
package/package.json
CHANGED
package/src/Resource.vue
CHANGED
|
@@ -386,7 +386,7 @@ export default {
|
|
|
386
386
|
this.done = true;
|
|
387
387
|
this.loading = false;
|
|
388
388
|
});
|
|
389
|
-
|
|
389
|
+
|
|
390
390
|
} else if (this.type === 'emotions') {
|
|
391
391
|
this.per = 30;
|
|
392
392
|
params = {
|
|
@@ -450,10 +450,11 @@ export default {
|
|
|
450
450
|
try {
|
|
451
451
|
let author = sessionStorage.getItem("atAuthor");
|
|
452
452
|
if (author) {
|
|
453
|
-
author = JSON.parse(author);
|
|
454
453
|
author = author.split(',') || [];
|
|
455
|
-
author.push(this.selectedAuthor.
|
|
454
|
+
author.push(this.selectedAuthor.ID);
|
|
456
455
|
sessionStorage.setItem("atAuthor", JSON.stringify(author.join(',')));
|
|
456
|
+
} else {
|
|
457
|
+
sessionStorage.setItem("atAuthor", JSON.stringify(this.selectedAuthor.ID));
|
|
457
458
|
}
|
|
458
459
|
} catch (error) {
|
|
459
460
|
console.log(error)
|
|
@@ -465,7 +466,7 @@ export default {
|
|
|
465
466
|
this.setAuthors();
|
|
466
467
|
this.$emit("insert", this.html);
|
|
467
468
|
this.dialogVisible = false;
|
|
468
|
-
this.
|
|
469
|
+
this.selectedAuthor = {};
|
|
469
470
|
} else {
|
|
470
471
|
this.$message.error("您的等级不足或无权限,无法插入用户资源");
|
|
471
472
|
return;
|
|
@@ -529,7 +530,7 @@ export default {
|
|
|
529
530
|
},
|
|
530
531
|
selectAuthor: function (o){
|
|
531
532
|
this.resetItems();
|
|
532
|
-
this.
|
|
533
|
+
this.selectedAuthor = o;
|
|
533
534
|
o.isSelected = true;
|
|
534
535
|
this.html = `<a data-type="author" class="e-jx3-author w-jx3-element" data-mode="" data-id="${o.ID}" target="_blank" href="/author/${o.ID}">【${o.display_name}】</a>`
|
|
535
536
|
},
|
|
@@ -564,10 +565,7 @@ export default {
|
|
|
564
565
|
},
|
|
565
566
|
loadUserInfo: function (){
|
|
566
567
|
if (!this.uid) return;
|
|
567
|
-
|
|
568
|
-
.then((data) => {
|
|
569
|
-
this.userInfo = data;
|
|
570
|
-
})
|
|
568
|
+
getUserInfo(this.uid)
|
|
571
569
|
},
|
|
572
570
|
|
|
573
571
|
// 杂项
|