Skip to content

Commit ae10dac

Browse files
authored
Merge pull request #396 from clevertension/master
fix #395: the plugin windows error with data retrieve
2 parents 5ec18ca + 1e0babe commit ae10dac

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

feature/src/assets/request/index.ts

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import axios from 'axios';
22

3-
let baseURL = 'https://gitcode.net/rubickcenter/rubick-database/-/raw/master';
3+
let baseURL = 'https://gitee.com/monkeyWang/rubickdatabase/raw/master';
44
let access_token = '';
55

66
try {
@@ -14,7 +14,7 @@ try {
1414
const instance = axios.create({
1515
timeout: 4000,
1616
baseURL:
17-
baseURL || 'https://gitee.com/monkeyWang/rubickdatabase/raw/master',
17+
baseURL || 'https://gitcode.net/rubickcenter/rubick-database/-/raw/master',
1818
});
1919

2020
export default {
@@ -23,9 +23,10 @@ export default {
2323
if (access_token) {
2424
targetPath = `${encodeURIComponent(
2525
targetPath
26-
)}/raw?access_token=${access_token}&ref=master`;
26+
)}?access_token=${access_token}&ref=master`;
2727
}
2828
const res = await instance.get(targetPath);
29+
console.log('total plugsin', res);
2930
return res.data;
3031
},
3132

@@ -34,7 +35,7 @@ export default {
3435
if (access_token) {
3536
targetPath = `${encodeURIComponent(
3637
targetPath
37-
)}/raw?access_token=${access_token}&ref=master`;
38+
)}?access_token=${access_token}&ref=master`;
3839
}
3940
const res = await instance.get(targetPath);
4041
return res.data;
@@ -45,7 +46,7 @@ export default {
4546
if (access_token) {
4647
targetPath = `${encodeURIComponent(
4748
targetPath
48-
)}/raw?access_token=${access_token}&ref=master`;
49+
)}?access_token=${access_token}&ref=master`;
4950
}
5051
const res = await instance.get(targetPath);
5152
return res.data;
@@ -55,7 +56,7 @@ export default {
5556
if (access_token) {
5657
targetPath = `${encodeURIComponent(
5758
targetPath
58-
)}/raw?access_token=${access_token}&ref=master`;
59+
)}?access_token=${access_token}&ref=master`;
5960
}
6061
const res = await instance.get(targetPath);
6162
return res.data;
@@ -71,7 +72,7 @@ export default {
7172
if (access_token) {
7273
targetPath = `${encodeURIComponent(
7374
targetPath
74-
)}/raw?access_token=${access_token}&ref=master`;
75+
)}?access_token=${access_token}&ref=master`;
7576
}
7677
const res = await instance.get(targetPath);
7778
return res.data;
@@ -81,7 +82,7 @@ export default {
8182
if (access_token) {
8283
targetPath = `${encodeURIComponent(
8384
targetPath
84-
)}/raw?access_token=${access_token}&ref=master`;
85+
)}?access_token=${access_token}&ref=master`;
8586
}
8687
const res = await instance.get(targetPath);
8788
return res.data;
@@ -91,7 +92,7 @@ export default {
9192
if (access_token) {
9293
targetPath = `${encodeURIComponent(
9394
targetPath
94-
)}/raw?access_token=${access_token}&ref=master`;
95+
)}?access_token=${access_token}&ref=master`;
9596
}
9697
const res = await instance.get(targetPath);
9798
return res.data;

0 commit comments

Comments
 (0)