perf: encodeURI
This commit is contained in:
parent
6f9d0c85ab
commit
c9b8f6c138
@ -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 => {
|
||||
|
||||
@ -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
|
||||
|
||||
@ -584,7 +584,7 @@ export default {
|
||||
}
|
||||
|
||||
api.rename({
|
||||
newFileName: newFileName,
|
||||
newFileName: encodeURI(newFileName),
|
||||
username: this.$store.state.user.name,
|
||||
id: row.id
|
||||
}).then(res => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user