@@ -9,6 +9,8 @@ export const useLastMonthStore = defineStore ('lastMonth',{
99 title : "" ,
1010 link :"" ,
1111 thumb :"" ,
12+ date : null ,
13+ description :"" ,
1214 fetched : false
1315 }
1416 } ,
@@ -23,6 +25,8 @@ export const useLastMonthStore = defineStore ('lastMonth',{
2325 this . link = rss . link ;
2426 this . thumb = rss . thumb ;
2527 this . fetched = true ;
28+ this . description = rss . description ;
29+ this . date = new Date ( rss . pubDate ) . getTime ( )
2630 }
2731 catch ( error ) {
2832 this . fetched = false ;
@@ -33,9 +37,6 @@ export const useLastMonthStore = defineStore ('lastMonth',{
3337} )
3438
3539async function fetchRSS ( ) {
36-
37- // const imageParamsAvatars = "?withoutEnlargement=true&quality=90&fit=cover&height=60&width=60";
38- // const limit = 10;
3940
4041 const url = Constants . OVERVIEW_RSS ;
4142
@@ -59,8 +60,9 @@ async function fetchRSS(){
5960 title : getItem ( item , 'title' ) ,
6061 link : getItem ( item , 'link' ) ,
6162 category : getItem ( item , 'category' ) ,
63+ thumb : getItem ( item , 'thumb' ) ,
6264 description : getItem ( item , 'description' ) ,
63- thumb : getItem ( item , 'thumb ' )
65+ pubDate : getItem ( item , 'pubDate ' )
6466 }
6567 )
6668 ) ) ;
@@ -75,7 +77,9 @@ async function fetchRSS(){
7577 return {
7678 title : lastMonth . title ,
7779 link : lastMonth . link ,
78- thumb : latestMonthThumb
80+ thumb : latestMonthThumb ,
81+ description : lastMonth . description ,
82+ pubDate : lastMonth . pubDate
7983 }
8084 }
8185 else {
0 commit comments