mirror of
https://github.com/CzBiX/qb-web.git
synced 2026-04-14 10:19:48 +08:00
Show add rss feed error
This commit is contained in:
@@ -379,7 +379,14 @@ export default class RssDialog extends HasTask {
|
||||
text: tr('label.adding'),
|
||||
})
|
||||
|
||||
await api.addRssFeed(input);
|
||||
try {
|
||||
await api.addRssFeed(input);
|
||||
} catch (e) {
|
||||
this.showSnackBar({
|
||||
text: e.response ? e.response.data : e.message,
|
||||
})
|
||||
return
|
||||
}
|
||||
await this.runTask();
|
||||
|
||||
this.closeSnackBar();
|
||||
|
||||
Reference in New Issue
Block a user