mirror of
https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
synced 2026-04-06 02:43:16 +08:00
修复Base64预处理器未能正确处理某些订阅的问题
This commit is contained in:
@@ -108,12 +108,9 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
refresh() {
|
||||
axios.post(`/utils/refresh`, {url: this.sub}).then(() => {
|
||||
this.fetch();
|
||||
}).catch(err => {
|
||||
this.$store.commit("SET_ERROR_MESSAGE", err.response.data.message);
|
||||
})
|
||||
async refresh() {
|
||||
await axios.post(`/utils/refresh`, {url: this.sub});
|
||||
await this.fetch();
|
||||
},
|
||||
|
||||
async fetch() {
|
||||
|
||||
@@ -253,8 +253,13 @@ export default {
|
||||
createCol() {
|
||||
this.$router.push("/collection-edit/UNTITLED")
|
||||
},
|
||||
refreshProxyList() {
|
||||
this.$refs.proxyList.refresh();
|
||||
async refreshProxyList() {
|
||||
try {
|
||||
await this.$refs.proxyList.refresh();
|
||||
this.$store.commit("SET_SUCCESS_MESSAGE", "刷新成功!");
|
||||
} catch (err) {
|
||||
this.$store.commit("SET_ERROR_MESSAGE", err.response.data.message);
|
||||
}
|
||||
},
|
||||
getIconClass(url) {
|
||||
return url.indexOf('#invert') !== -1 && !this.$store.state.settings.theme.darkMode ? 'invert' : ''
|
||||
|
||||
Reference in New Issue
Block a user