perf: encodeURI
This commit is contained in:
parent
6f9d0c85ab
commit
c9b8f6c138
@ -2415,7 +2415,7 @@ export default {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
api.rename({
|
api.rename({
|
||||||
newFileName: newFileName,
|
newFileName: encodeURI(newFileName),
|
||||||
username: this.$store.state.user.name,
|
username: this.$store.state.user.name,
|
||||||
id: row.id
|
id: row.id
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
|
|||||||
@ -684,7 +684,7 @@
|
|||||||
update(value,path,index) {
|
update(value,path,index) {
|
||||||
this.updating = true
|
this.updating = true
|
||||||
markdownApi.editMarkdownByPath({
|
markdownApi.editMarkdownByPath({
|
||||||
relativePath: path,
|
relativePath: encodeURI(path),
|
||||||
userId: this.$store.state.user.userId,
|
userId: this.$store.state.user.userId,
|
||||||
username: this.$store.state.user.name,
|
username: this.$store.state.user.name,
|
||||||
contentText: value
|
contentText: value
|
||||||
|
|||||||
@ -584,7 +584,7 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
api.rename({
|
api.rename({
|
||||||
newFileName: newFileName,
|
newFileName: encodeURI(newFileName),
|
||||||
username: this.$store.state.user.name,
|
username: this.$store.state.user.name,
|
||||||
id: row.id
|
id: row.id
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user