mirror of
https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
synced 2025-08-09 23:59:01 +08:00
修复QX请求头没有Stringify导致请求超时的问题
This commit is contained in:
parent
3dddc53ed3
commit
6758f5b6e0
@ -3123,7 +3123,10 @@ function HTTP(defaultOptions = {baseURL: ""}) {
|
||||
|
||||
let worker;
|
||||
if (isQX) {
|
||||
worker = $task.fetch({method, ...options});
|
||||
if (options.headers) {
|
||||
options.headers = JSON.stringify(options.headers);
|
||||
}
|
||||
worker = $task.fetch({method, url: options.url, headers: options.headers, body: options.body});
|
||||
} else if (isLoon || isSurge || isNode) {
|
||||
worker = new Promise((resolve, reject) => {
|
||||
const request = isNode ? require("request") : $httpClient;
|
||||
|
4
backend/sub-store.min.js
vendored
4
backend/sub-store.min.js
vendored
File diff suppressed because one or more lines are too long
@ -60,6 +60,7 @@ export default {
|
||||
|
||||
created() {
|
||||
initStore(this.$store);
|
||||
// this.$vuetify.theme.dark = !this.$vuetify.theme.dark;
|
||||
},
|
||||
|
||||
computed: {
|
||||
|
@ -142,7 +142,7 @@
|
||||
</v-btn>
|
||||
</template>
|
||||
<v-list dense>
|
||||
<v-list-item @click="copy(artifact.url)">
|
||||
<v-list-item @click="copy(artifact.url)" v-if="artifact.url">
|
||||
<v-list-item-title>复制</v-list-item-title>
|
||||
</v-list-item>
|
||||
<v-list-item @click="preview(artifact.name)">
|
||||
|
@ -34,8 +34,9 @@
|
||||
>
|
||||
<v-subheader class="pl-0">包含的订阅</v-subheader>
|
||||
<v-list-item v-for="sub in availableSubs" :key="sub.name">
|
||||
<v-list-item-avatar dark>
|
||||
<v-icon>mdi-cloud</v-icon>
|
||||
<v-list-item-avatar>
|
||||
<v-icon v-if="!sub.icon" color="teal darken-1">mdi-cloud</v-icon>
|
||||
<v-img :src="sub.icon" v-else color="blue"/>
|
||||
</v-list-item-avatar>
|
||||
<v-list-item-content>
|
||||
{{ sub.name }}
|
||||
@ -48,6 +49,16 @@
|
||||
/>
|
||||
</v-list-item>
|
||||
</v-list>
|
||||
<v-textarea
|
||||
v-model="options.icon"
|
||||
class="mt-2"
|
||||
rows="2"
|
||||
label="图标链接"
|
||||
placeholder="填入想要展示的图标链接,可选。"
|
||||
clearable
|
||||
auto-grow
|
||||
clear-icon="clear"
|
||||
/>
|
||||
</v-form>
|
||||
<v-card-actions>
|
||||
<v-spacer></v-spacer>
|
||||
@ -63,7 +74,7 @@
|
||||
<v-card class="pl-4 pr-4 pb-4 pt-4">
|
||||
<v-card-title>
|
||||
<v-icon left>cloud_circle</v-icon>
|
||||
配置同步
|
||||
配置导入
|
||||
<v-spacer/>
|
||||
<v-btn icon @click="share">
|
||||
<v-icon small>share</v-icon>
|
||||
@ -312,6 +323,7 @@ export default {
|
||||
options: {
|
||||
name: "",
|
||||
url: "",
|
||||
icon: "",
|
||||
useless: "KEEP",
|
||||
udp: "DEFAULT",
|
||||
"skip-cert-verify": "DEFAULT",
|
||||
@ -362,6 +374,7 @@ export default {
|
||||
config() {
|
||||
const output = {
|
||||
name: this.options.name,
|
||||
icon: this.options.icon,
|
||||
process: []
|
||||
};
|
||||
if (this.isCollection) {
|
||||
@ -523,6 +536,7 @@ function loadProcess(options, source, isCollection = false) {
|
||||
options = {
|
||||
...options,
|
||||
name: source.name,
|
||||
icon: source.icon,
|
||||
};
|
||||
if (isCollection) {
|
||||
options.subscriptions = source.subscriptions;
|
||||
|
@ -2,7 +2,7 @@
|
||||
<v-container fluid>
|
||||
<v-card>
|
||||
<v-card-title>
|
||||
订阅
|
||||
单个订阅
|
||||
<v-spacer></v-spacer>
|
||||
<v-btn icon @click="createSub">
|
||||
<v-icon color="primary">mdi-plus-circle</v-icon>
|
||||
@ -15,9 +15,11 @@
|
||||
:key="sub.name"
|
||||
@click="preview(sub)"
|
||||
>
|
||||
<v-list-item-avatar dark>
|
||||
<v-icon>mdi-cloud</v-icon>
|
||||
<v-list-item-avatar>
|
||||
<v-icon v-if="!sub.icon" color="teal darken-1">mdi-cloud</v-icon>
|
||||
<v-img :src="sub.icon" v-else color="blue"/>
|
||||
</v-list-item-avatar>
|
||||
|
||||
<v-list-item-content>
|
||||
<v-list-item-title v-text="sub.name" class="font-weight-medium"></v-list-item-title>
|
||||
<v-list-item-title v-text="sub.url"></v-list-item-title>
|
||||
@ -66,8 +68,9 @@
|
||||
@click="preview(collection, type='collection')"
|
||||
dense
|
||||
>
|
||||
<v-list-item-avatar dark>
|
||||
<v-icon>mdi-cloud</v-icon>
|
||||
<v-list-item-avatar>
|
||||
<v-icon v-if="!collection.icon" color="teal darken-1">mdi-cloud</v-icon>
|
||||
<v-img :src="collection.icon" v-else color="blue"/>
|
||||
</v-list-item-avatar>
|
||||
<v-list-item-content>
|
||||
<v-list-item-title v-text="collection.name" class="font-weight-medium"></v-list-item-title>
|
||||
|
Loading…
x
Reference in New Issue
Block a user