mirror of
https://github.com/EstrellaXD/Auto_Bangumi.git
synced 2026-04-24 18:40:03 +08:00
fix: bugs, add disable rss api.
This commit is contained in:
@@ -11,6 +11,9 @@ export const useRSSStore = defineStore('rss', () => {
|
||||
const { execute: updateRSS, onResult: onUpdateRSSResult } = useApi(
|
||||
apiRSS.update
|
||||
);
|
||||
const { execute: disableRSS, onResult: onDisableRSSResult} = useApi(
|
||||
apiRSS.disable
|
||||
);
|
||||
const { execute: deleteRSS, onResult: onDeleteRSSResult } = useApi(
|
||||
apiRSS.delete
|
||||
);
|
||||
@@ -38,12 +41,14 @@ export const useRSSStore = defineStore('rss', () => {
|
||||
|
||||
onUpdateRSSResult(actionSuccess);
|
||||
onDeleteRSSResult(actionSuccess);
|
||||
onDisableRSSResult(actionSuccess)
|
||||
|
||||
return {
|
||||
rss,
|
||||
getAll,
|
||||
refresh,
|
||||
updateRSS,
|
||||
disableRSS,
|
||||
deleteRSS,
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user