suport linux

This commit is contained in:
muwoo
2022-01-24 13:40:24 +08:00
parent 751c73b3a6
commit 842a44a6d1
12 changed files with 231 additions and 14 deletions

View File

@@ -35,7 +35,7 @@ export default {
},
async getSystemDetail() {
let targetPath = "/plugins/system.json";
let targetPath = "plugins/system.json";
if (access_token) {
targetPath = `${encodeURIComponent(targetPath)}/raw?access_token=${access_token}&ref=master`
}
@@ -43,7 +43,7 @@ export default {
return res.data;
},
async getWorkerDetail() {
let targetPath = "/plugins/worker.json";
let targetPath = "plugins/worker.json";
if (access_token) {
targetPath = `${encodeURIComponent(targetPath)}/raw?access_token=${access_token}&ref=master`
}
@@ -57,7 +57,7 @@ export default {
},
async getSearchDetail() {
let targetPath = "/plugins/search.json";
let targetPath = "plugins/search.json";
if (access_token) {
targetPath = `${encodeURIComponent(targetPath)}/raw?access_token=${access_token}&ref=master`
}
@@ -65,7 +65,7 @@ export default {
return res.data;
},
async getDevDetail() {
let targetPath = "/plugins/dev.json";
let targetPath = "plugins/dev.json";
if (access_token) {
targetPath = `${encodeURIComponent(targetPath)}/raw?access_token=${access_token}&ref=master`
}

View File

@@ -149,6 +149,7 @@ const deletePlugin = async (plugin) => {
height: 100%;
padding: 10px 0;
border-right: 1px solid #eee;
overflow: auto;
.item {
padding: 10px 20px;
display: flex;