bug fixed

This commit is contained in:
Peng-YM
2020-09-01 17:56:24 +08:00
parent d60b7ff87c
commit 9b39a9dfa4
5 changed files with 2875 additions and 2877 deletions

View File

@@ -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();
})
},

View File

@@ -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`;

View File

@@ -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}`
}