diff --git a/src/views/components/topnav/topnav-help.vue b/src/views/components/topnav/topnav-help.vue
index 05f17ee8337163c42b622c39ed76f940552d78e7..1f71d4197c988b34855779a7467a14e5317b316b 100644
--- a/src/views/components/topnav/topnav-help.vue
+++ b/src/views/components/topnav/topnav-help.vue
@@ -163,7 +163,9 @@ export default {
},
openHelpManage() {
if (this.isShowDetail) {
- let url = HOME + '/documentonline.html#/documentonline-detail?filePath=' + this.filePath;
+ //替换文档标题的特殊字符&
+ let filePath = this.filePath.replace(/\&/g, '%26');
+ let url = HOME + '/documentonline.html#/documentonline-detail?filePath=' + filePath;
if (this.anchorPoint) {
url += '&anchorPoint=' + this.anchorPoint;
}
diff --git a/src/views/pages/documentonline/document/documentonline-content.vue b/src/views/pages/documentonline/document/documentonline-content.vue
index 9c5747df2553ce6ed63c2bcc9a6b428c9c5df1cf..8292ff47d3cfabfda7743538a165ade590735957 100644
--- a/src/views/pages/documentonline/document/documentonline-content.vue
+++ b/src/views/pages/documentonline/document/documentonline-content.vue
@@ -81,6 +81,11 @@ export default {
let id = 'heading_' + _this.$utils.setUuid();
return `${text}`;
};
+ //替换文档中a标签链接参数的特殊字符&
+ renderer.link = (href, title, text) => {
+ const newhref = href.replace(/\&/g, '%26');
+ return `${text}`;
+ };
this.markdownContent = marked(this.markdownSource, { renderer });
this.getHeadings();
this.$nextTick(() => {