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