diff --git a/.gitignore b/.gitignore index 97bee46e..34444ed0 100644 --- a/.gitignore +++ b/.gitignore @@ -24,3 +24,4 @@ dist-ssr *.sw? coverage +CHANGELOG diff --git a/package.json b/package.json index 2db8fd14..3427ecdd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "scriptcat", - "version": "0.11.0-beta.3", + "version": "0.11.0", "description": "脚本猫,一个可以执行用户脚本的浏览器扩展,万物皆可脚本化,让你的浏览器可以做更多的事情!", "author": "CodFrm", "license": "GPLv3", diff --git a/pkg/filesystem/onedrive/onedrive.ts b/pkg/filesystem/onedrive/onedrive.ts index 0eca420c..eaeb2afe 100644 --- a/pkg/filesystem/onedrive/onedrive.ts +++ b/pkg/filesystem/onedrive/onedrive.ts @@ -58,14 +58,12 @@ export default class OneDriveFileSystem implements FileSystem { const dirs = dir.split("/"); let parent = ""; if (dirs.length > 2) { - parent = dirs.slice(0, dirs.length - 2).join("/"); + parent = dirs.slice(0, dirs.length - 1).join("/"); } const myHeaders = new Headers(); myHeaders.append("Content-Type", "application/json"); return this.request( - `https://graph.microsoft.com/v1.0/me/drive/special/approot:${parent}/${ - dirs[dirs.length - 1] - }:/children`, + `https://graph.microsoft.com/v1.0/me/drive/special/approot:${parent}:/children`, { method: "POST", headers: myHeaders, diff --git a/src/app/const.ts b/src/app/const.ts index f6a066c0..fcdbd166 100644 --- a/src/app/const.ts +++ b/src/app/const.ts @@ -1,4 +1,4 @@ -export const ExtVersion = "0.11.0-beta.3"; +export const ExtVersion = "0.11.0"; export const ExtServer = "https://ext.scriptcat.org/"; diff --git a/src/manifest.json b/src/manifest.json index 614efcd3..dfa2bb39 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 2, "name": "ScriptCat", - "version": "0.11.0.1040", + "version": "0.11.0", "author": "CodFrm", "description": "脚本猫,一个用户脚本管理器,支持后台脚本、定时脚本、页面脚本,可编写脚本每天帮你自动处理事务.", "options_ui": {