mirror of
https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
synced 2025-09-12 15:53:11 +08:00
bug fixed
This commit is contained in:
parent
8fc5e58276
commit
2d6aa1ef1a
4
backend/.idea/workspace.xml
generated
4
backend/.idea/workspace.xml
generated
@ -22,8 +22,9 @@
|
||||
<list default="true" id="8b97a098-48b2-4e64-a9ef-522fe2d30b52" name="Default Changelist" comment="">
|
||||
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/sub-store.js" beforeDir="false" afterPath="$PROJECT_DIR$/sub-store.js" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/../web/src/components/SortOperator.vue" beforeDir="false" afterPath="$PROJECT_DIR$/../web/src/components/SortOperator.vue" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/../web/src/components/ProxyList.vue" beforeDir="false" afterPath="$PROJECT_DIR$/../web/src/components/ProxyList.vue" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/../web/src/config.js" beforeDir="false" afterPath="$PROJECT_DIR$/../web/src/config.js" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/../web/src/views/Subscription.vue" beforeDir="false" afterPath="$PROJECT_DIR$/../web/src/views/Subscription.vue" afterDir="false" />
|
||||
</list>
|
||||
<option name="SHOW_DIALOG" value="false" />
|
||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||
@ -93,6 +94,7 @@
|
||||
<workItem from="1598900239005" duration="4742000" />
|
||||
<workItem from="1598931009084" duration="2069000" />
|
||||
<workItem from="1598946261983" duration="463000" />
|
||||
<workItem from="1598948545209" duration="3969000" />
|
||||
</task>
|
||||
<servers />
|
||||
</component>
|
||||
|
5735
backend/sub-store.js
5735
backend/sub-store.js
File diff suppressed because it is too large
Load Diff
@ -36,7 +36,7 @@ import {axios} from "@/utils";
|
||||
|
||||
export default {
|
||||
name: "ProxyList",
|
||||
props: ['url'],
|
||||
props: ['url', 'sub'],
|
||||
data: function (){
|
||||
return {
|
||||
proxies: []
|
||||
@ -44,7 +44,7 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
refresh() {
|
||||
axios.post(`/refresh`, {url: this.url}).then(() => {
|
||||
axios.post(`/refresh`, {url: this.sub}).then(() => {
|
||||
this.fetch();
|
||||
})
|
||||
},
|
||||
|
@ -1,2 +1,3 @@
|
||||
const DEBUG = process.env.NODE_ENV === "development";
|
||||
// const DEBUG = process.env.NODE_ENV === "development";
|
||||
const DEBUG = false;
|
||||
export const BACKEND_BASE = DEBUG ? `http://192.168.1.134:3000` : `https://sub.store`;
|
@ -148,7 +148,7 @@
|
||||
</v-toolbar>
|
||||
</v-card-title>
|
||||
<v-card-text class="pl-0 pr-0">
|
||||
<proxy-list :url="url" ref="proxyList" :key="url"></proxy-list>
|
||||
<proxy-list :url="url" :sub="sub" ref="proxyList" :key="url"></proxy-list>
|
||||
</v-card-text>
|
||||
</v-card>
|
||||
</v-dialog>
|
||||
@ -166,6 +166,7 @@ export default {
|
||||
opened: false,
|
||||
showProxyList: false,
|
||||
url: "",
|
||||
sub: [],
|
||||
editMenu: [
|
||||
{
|
||||
title: "复制",
|
||||
@ -227,7 +228,8 @@ export default {
|
||||
},
|
||||
preview(item, type = 'sub') {
|
||||
if (type === 'sub') {
|
||||
this.url = `${BACKEND_BASE}/download/${item.name}`
|
||||
this.url = `${BACKEND_BASE}/download/${item.name}`;
|
||||
this.sub = [item.url];
|
||||
} else {
|
||||
this.url = `${BACKEND_BASE}/download/collection/${item.name}`
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user