路径替换bugfix
This commit is contained in:
parent
808891e47c
commit
5a30338e83
@ -844,7 +844,7 @@ const syncWorkspace = async (skipContents = false) => {
|
|||||||
|
|
||||||
const syncImg = async (absolutePath) => {
|
const syncImg = async (absolutePath) => {
|
||||||
const token = workspaceProvider.getToken();
|
const token = workspaceProvider.getToken();
|
||||||
const path = absolutePath.substring(1, absolutePath.length).replace('%20', ' ');
|
const path = absolutePath.substring(1, absolutePath.length).replaceAll('%20', ' ');
|
||||||
const { sha, content } = await workspaceProvider.downloadFile({
|
const { sha, content } = await workspaceProvider.downloadFile({
|
||||||
token,
|
token,
|
||||||
path,
|
path,
|
||||||
@ -877,7 +877,7 @@ const uploadImg = async (imgIds, index = 0) => {
|
|||||||
file: {
|
file: {
|
||||||
...utils.deepCopy(item),
|
...utils.deepCopy(item),
|
||||||
type: 'img',
|
type: 'img',
|
||||||
path: item.path.substring(1, item.path.length).replace('%20', ' '),
|
path: item.path.substring(1, item.path.length).replaceAll('%20', ' '),
|
||||||
},
|
},
|
||||||
isImg: true,
|
isImg: true,
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user