diff --git a/src/components/Attachment/AttachmentDetailModal.vue b/src/components/Attachment/AttachmentDetailModal.vue index 64865dba..98ebd402 100644 --- a/src/components/Attachment/AttachmentDetailModal.vue +++ b/src/components/Attachment/AttachmentDetailModal.vue @@ -63,7 +63,7 @@ 普通链接: - + @@ -74,11 +74,7 @@ ![{{ attachment.name }}]({{ attachment.path }}) Markdown 格式: - + diff --git a/src/components/Attachment/AttachmentSelectModal.vue b/src/components/Attachment/AttachmentSelectModal.vue index 8c2e9adb..da2a4c4f 100644 --- a/src/components/Attachment/AttachmentSelectModal.vue +++ b/src/components/Attachment/AttachmentSelectModal.vue @@ -72,7 +72,7 @@ {{ item.suffix }} @@ -259,7 +259,7 @@ export default { return [] } return this.list.selected.map(item => { - return `![${item.name}](${encodeURI(item.path)})` + return `![${item.name}](${item.path})` }) }, htmlSyntaxList() { @@ -267,7 +267,7 @@ export default { return [] } return this.list.selected.map(item => { - return `${item.name}` + return `${item.name}` }) } }, @@ -378,8 +378,8 @@ export default { if (!this.multiSelect) { this.$emit('confirm', { raw: [attachment], - markdown: [`![${attachment.name}](${encodeURI(attachment.path)})`], - html: [`${attachment.name}`] + markdown: [`![${attachment.name}](${attachment.path})`], + html: [`${attachment.name}`] }) this.modalVisible = false return diff --git a/src/components/Editor/MarkdownEditor.vue b/src/components/Editor/MarkdownEditor.vue index 724035b1..8d07d874 100644 --- a/src/components/Editor/MarkdownEditor.vue +++ b/src/components/Editor/MarkdownEditor.vue @@ -69,7 +69,7 @@ export default { const attachment = response.data resolve({ name: attachment.name, - path: encodeURI(attachment.path) + path: attachment.path }) }) .catch(e => { diff --git a/src/components/Input/AttachmentInput.vue b/src/components/Input/AttachmentInput.vue index 21bc8027..882151cb 100644 --- a/src/components/Input/AttachmentInput.vue +++ b/src/components/Input/AttachmentInput.vue @@ -52,7 +52,7 @@ export default { }, handleSelectAttachment({ raw }) { if (raw.length) { - this.$emit('input', encodeURI(raw[0].path)) + this.$emit('input', raw[0].path) } }, focus() { diff --git a/src/components/Post/PostSettingModal.vue b/src/components/Post/PostSettingModal.vue index 2d631680..11eda59d 100644 --- a/src/components/Post/PostSettingModal.vue +++ b/src/components/Post/PostSettingModal.vue @@ -457,7 +457,7 @@ export default { */ handleSelectPostThumbnail({ raw }) { if (raw.length) { - this.form.model.thumbnail = encodeURI(raw[0].path) + this.form.model.thumbnail = raw[0].path } this.attachmentSelectVisible = false }, diff --git a/src/views/attachment/AttachmentList.vue b/src/views/attachment/AttachmentList.vue index 040a44b5..75c197ce 100644 --- a/src/views/attachment/AttachmentList.vue +++ b/src/views/attachment/AttachmentList.vue @@ -85,7 +85,7 @@ {{ item.suffix }} diff --git a/src/views/sheet/components/SheetSettingModal.vue b/src/views/sheet/components/SheetSettingModal.vue index 95dc82e2..66ab080a 100644 --- a/src/views/sheet/components/SheetSettingModal.vue +++ b/src/views/sheet/components/SheetSettingModal.vue @@ -405,7 +405,7 @@ export default { */ handleSelectSheetThumbnail({ raw }) { if (raw.length) { - this.form.model.thumbnail = encodeURI(raw[0].path) + this.form.model.thumbnail = raw[0].path } this.attachmentSelectVisible = false }, diff --git a/src/views/sheet/independent/PhotoList.vue b/src/views/sheet/independent/PhotoList.vue index 0dedb11e..bbad77bd 100644 --- a/src/views/sheet/independent/PhotoList.vue +++ b/src/views/sheet/independent/PhotoList.vue @@ -77,7 +77,7 @@ >
diff --git a/src/views/sheet/independent/components/PhotoFormModal.vue b/src/views/sheet/independent/components/PhotoFormModal.vue index 60527841..13d8a120 100644 --- a/src/views/sheet/independent/components/PhotoFormModal.vue +++ b/src/views/sheet/independent/components/PhotoFormModal.vue @@ -151,8 +151,8 @@ export default { handleAttachmentSelected({ raw }) { if (raw.length) { const { path, thumbPath, name } = raw[0] - this.$set(this.form.model, 'url', encodeURI(path)) - this.$set(this.form.model, 'thumbnail', encodeURI(thumbPath)) + this.$set(this.form.model, 'url', path) + this.$set(this.form.model, 'thumbnail', thumbPath) this.$set(this.form.model, 'name', name) } this.attachmentSelectModal.visible = false