diff --git a/resources/assets/js/pages/manage/components/DialogView.vue b/resources/assets/js/pages/manage/components/DialogView.vue
index 891353528..8ed5e7344 100644
--- a/resources/assets/js/pages/manage/components/DialogView.vue
+++ b/resources/assets/js/pages/manage/components/DialogView.vue
@@ -211,8 +211,17 @@ export default {
text = text.trim().replace(/(\n\x20*){3,}/g, "\n\n");
text = text.replace(/\{\{RemoteURL\}\}/g, $A.apiUrl('../'))
text = text.replace(/
<\/p>/g, '
')
- // text = text.replace(/(https*:\/\/)((\w|=|\?|\.|\/|&|-|:|\+|%|;)+)/g, "$1$2");
text = text.replace(this.atUserReg, ``)
+ // 处理内容连接
+ if (/https*:\/\//.test(text)) {
+ text = text.split(/(<[^>]*>)/g).map(string => {
+ if (string && !/<[^>]*>/.test(string)) {
+ string = string.replace(/(https*:\/\/)((\w|=|\?|\.|\/|&|-|:|\+|%|;)+)/g, "$1$2")
+ }
+ return string;
+ }).join("")
+ }
+ // 处理图片显示尺寸
const array = text.match(/
]*?>/g);
if (array) {
const widthReg = new RegExp("width=\"(\\d+)\"")