@jx3box/jx3box-common-ui 9.4.0 → 9.4.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/SuspendCommon.vue +10 -1
package/package.json
CHANGED
package/src/SuspendCommon.vue
CHANGED
|
@@ -512,11 +512,13 @@ export default {
|
|
|
512
512
|
unsubscribeAuthor(drawerConfig.author.author_id).then(res => {
|
|
513
513
|
this.isSubscribe = false;
|
|
514
514
|
this.subscribeInfo = {}
|
|
515
|
+
this.$emit('subscribe', { isSubscribe: this.isSubscribe });
|
|
515
516
|
})
|
|
516
517
|
} else {
|
|
517
518
|
subscribeAuthor(drawerConfig.author.author_id, { title: drawerConfig.title }).then(res => {
|
|
518
519
|
this.isSubscribe = true;
|
|
519
520
|
this.subscribeInfo = res.data?.data
|
|
521
|
+
this.$emit('subscribe', { isSubscribe: this.isSubscribe });
|
|
520
522
|
})
|
|
521
523
|
}
|
|
522
524
|
}
|
|
@@ -526,11 +528,13 @@ export default {
|
|
|
526
528
|
unsubscribePost(drawerConfig.id).then(res => {
|
|
527
529
|
this.isSubscribe = false;
|
|
528
530
|
this.subscribeInfo = {}
|
|
531
|
+
this.$emit('subscribe', { isSubscribe: this.isSubscribe });
|
|
529
532
|
})
|
|
530
533
|
} else {
|
|
531
534
|
subscribePost(drawerConfig.id, { title: drawerConfig.title }).then(res => {
|
|
532
535
|
this.isSubscribe = true;
|
|
533
536
|
this.subscribeInfo = res.data?.data
|
|
537
|
+
this.$emit('subscribe', { isSubscribe: this.isSubscribe });
|
|
534
538
|
})
|
|
535
539
|
}
|
|
536
540
|
}
|
|
@@ -540,11 +544,13 @@ export default {
|
|
|
540
544
|
unsubscribeArticle(drawerConfig.postType, drawerConfig.id).then(res => {
|
|
541
545
|
this.isSubscribe = false;
|
|
542
546
|
this.subscribeInfo = {}
|
|
547
|
+
this.$emit('subscribe', { isSubscribe: this.isSubscribe });
|
|
543
548
|
})
|
|
544
549
|
} else {
|
|
545
550
|
subscribeArticle(drawerConfig.postType, drawerConfig.id, { title: drawerConfig.title }).then(res => {
|
|
546
551
|
this.isSubscribe = true;
|
|
547
552
|
this.subscribeInfo = res.data?.data
|
|
553
|
+
this.$emit('subscribe', { isSubscribe: this.isSubscribe });
|
|
548
554
|
})
|
|
549
555
|
}
|
|
550
556
|
}
|
|
@@ -554,15 +560,17 @@ export default {
|
|
|
554
560
|
unsubscribeWiki(drawerConfig.postType, drawerConfig.id).then(res => {
|
|
555
561
|
this.isSubscribe = false;
|
|
556
562
|
this.subscribeInfo = {}
|
|
563
|
+
this.$emit('subscribe', { isSubscribe: this.isSubscribe });
|
|
557
564
|
})
|
|
558
565
|
} else {
|
|
559
566
|
subscribeWiki(drawerConfig.postType, drawerConfig.id, { title: drawerConfig.title }).then(res => {
|
|
560
567
|
this.isSubscribe = true;
|
|
561
568
|
this.subscribeInfo = res.data?.data
|
|
569
|
+
this.$emit('subscribe', { isSubscribe: this.isSubscribe });
|
|
562
570
|
})
|
|
563
571
|
}
|
|
564
572
|
}
|
|
565
|
-
|
|
573
|
+
|
|
566
574
|
},
|
|
567
575
|
/**
|
|
568
576
|
* 订阅状态查询
|
|
@@ -615,6 +623,7 @@ export default {
|
|
|
615
623
|
}
|
|
616
624
|
later(params).then(res => {
|
|
617
625
|
console.log(res)
|
|
626
|
+
this.$message.success("已添加稍后再看");
|
|
618
627
|
this.areaKey = 'home';
|
|
619
628
|
this.$emit('laterOn');
|
|
620
629
|
})
|