mirror of
https://github.com/rubickCenter/rubick
synced 2025-10-26 22:51:25 +08:00
fix #395: the plugin windows error data retrieve
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
|
|
||||||
let baseURL = 'https://gitcode.net/rubickcenter/rubick-database/-/raw/master';
|
let baseURL = 'https://gitee.com/monkeyWang/rubickdatabase/raw/master';
|
||||||
let access_token = '';
|
let access_token = '';
|
||||||
|
|
||||||
try {
|
try {
|
||||||
@@ -14,7 +14,7 @@ try {
|
|||||||
const instance = axios.create({
|
const instance = axios.create({
|
||||||
timeout: 4000,
|
timeout: 4000,
|
||||||
baseURL:
|
baseURL:
|
||||||
baseURL || 'https://gitee.com/monkeyWang/rubickdatabase/raw/master',
|
baseURL || 'https://gitcode.net/rubickcenter/rubick-database/-/raw/master',
|
||||||
});
|
});
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@@ -23,9 +23,10 @@ export default {
|
|||||||
if (access_token) {
|
if (access_token) {
|
||||||
targetPath = `${encodeURIComponent(
|
targetPath = `${encodeURIComponent(
|
||||||
targetPath
|
targetPath
|
||||||
)}/raw?access_token=${access_token}&ref=master`;
|
)}?access_token=${access_token}&ref=master`;
|
||||||
}
|
}
|
||||||
const res = await instance.get(targetPath);
|
const res = await instance.get(targetPath);
|
||||||
|
console.log('total plugsin', res);
|
||||||
return res.data;
|
return res.data;
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -34,7 +35,7 @@ export default {
|
|||||||
if (access_token) {
|
if (access_token) {
|
||||||
targetPath = `${encodeURIComponent(
|
targetPath = `${encodeURIComponent(
|
||||||
targetPath
|
targetPath
|
||||||
)}/raw?access_token=${access_token}&ref=master`;
|
)}?access_token=${access_token}&ref=master`;
|
||||||
}
|
}
|
||||||
const res = await instance.get(targetPath);
|
const res = await instance.get(targetPath);
|
||||||
return res.data;
|
return res.data;
|
||||||
@@ -45,7 +46,7 @@ export default {
|
|||||||
if (access_token) {
|
if (access_token) {
|
||||||
targetPath = `${encodeURIComponent(
|
targetPath = `${encodeURIComponent(
|
||||||
targetPath
|
targetPath
|
||||||
)}/raw?access_token=${access_token}&ref=master`;
|
)}?access_token=${access_token}&ref=master`;
|
||||||
}
|
}
|
||||||
const res = await instance.get(targetPath);
|
const res = await instance.get(targetPath);
|
||||||
return res.data;
|
return res.data;
|
||||||
@@ -55,7 +56,7 @@ export default {
|
|||||||
if (access_token) {
|
if (access_token) {
|
||||||
targetPath = `${encodeURIComponent(
|
targetPath = `${encodeURIComponent(
|
||||||
targetPath
|
targetPath
|
||||||
)}/raw?access_token=${access_token}&ref=master`;
|
)}?access_token=${access_token}&ref=master`;
|
||||||
}
|
}
|
||||||
const res = await instance.get(targetPath);
|
const res = await instance.get(targetPath);
|
||||||
return res.data;
|
return res.data;
|
||||||
@@ -71,7 +72,7 @@ export default {
|
|||||||
if (access_token) {
|
if (access_token) {
|
||||||
targetPath = `${encodeURIComponent(
|
targetPath = `${encodeURIComponent(
|
||||||
targetPath
|
targetPath
|
||||||
)}/raw?access_token=${access_token}&ref=master`;
|
)}?access_token=${access_token}&ref=master`;
|
||||||
}
|
}
|
||||||
const res = await instance.get(targetPath);
|
const res = await instance.get(targetPath);
|
||||||
return res.data;
|
return res.data;
|
||||||
@@ -81,7 +82,7 @@ export default {
|
|||||||
if (access_token) {
|
if (access_token) {
|
||||||
targetPath = `${encodeURIComponent(
|
targetPath = `${encodeURIComponent(
|
||||||
targetPath
|
targetPath
|
||||||
)}/raw?access_token=${access_token}&ref=master`;
|
)}?access_token=${access_token}&ref=master`;
|
||||||
}
|
}
|
||||||
const res = await instance.get(targetPath);
|
const res = await instance.get(targetPath);
|
||||||
return res.data;
|
return res.data;
|
||||||
@@ -91,7 +92,7 @@ export default {
|
|||||||
if (access_token) {
|
if (access_token) {
|
||||||
targetPath = `${encodeURIComponent(
|
targetPath = `${encodeURIComponent(
|
||||||
targetPath
|
targetPath
|
||||||
)}/raw?access_token=${access_token}&ref=master`;
|
)}?access_token=${access_token}&ref=master`;
|
||||||
}
|
}
|
||||||
const res = await instance.get(targetPath);
|
const res = await instance.get(targetPath);
|
||||||
return res.data;
|
return res.data;
|
||||||
|
|||||||
Reference in New Issue
Block a user