perf: encodeURI

This commit is contained in:
jmal 2022-08-15 17:07:39 +08:00
parent 6f9d0c85ab
commit c9b8f6c138
3 changed files with 3 additions and 3 deletions

View File

@ -2415,7 +2415,7 @@ export default {
return
}
api.rename({
newFileName: newFileName,
newFileName: encodeURI(newFileName),
username: this.$store.state.user.name,
id: row.id
}).then(res => {

View File

@ -684,7 +684,7 @@
update(value,path,index) {
this.updating = true
markdownApi.editMarkdownByPath({
relativePath: path,
relativePath: encodeURI(path),
userId: this.$store.state.user.userId,
username: this.$store.state.user.name,
contentText: value

View File

@ -584,7 +584,7 @@ export default {
}
api.rename({
newFileName: newFileName,
newFileName: encodeURI(newFileName),
username: this.$store.state.user.name,
id: row.id
}).then(res => {