mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-07-16 21:41:25 +08:00
fix: cherry-markdown 上传附件和样式调整
This commit is contained in:
parent
13cc0b1e3b
commit
46cd063e71
@ -3203,7 +3203,8 @@ div[data-type=codeBlock] .token.inserted {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.cherry-editor .cm-s-default .cm-url {
|
.cherry-editor .cm-s-default .cm-url {
|
||||||
background: #4b4b4b;
|
background: #f8fafb;
|
||||||
|
color: #3582fb;
|
||||||
font-family: "Menlo", "Liberation Mono", "Consolas", "DejaVu Sans Mono", "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace;
|
font-family: "Menlo", "Liberation Mono", "Consolas", "DejaVu Sans Mono", "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace;
|
||||||
font-size: 0.9em;
|
font-size: 0.9em;
|
||||||
}
|
}
|
||||||
|
@ -630,10 +630,11 @@ function myFileUpload(file, callback) {
|
|||||||
},
|
},
|
||||||
success: function (data) {
|
success: function (data) {
|
||||||
layer.close(layerIndex);
|
layer.close(layerIndex);
|
||||||
if (data[0].errcode !== 0) {
|
// 验证data是否为数组
|
||||||
layer.msg(data[0].message);
|
if (data.errcode !== 0) {
|
||||||
|
layer.msg(data.message);
|
||||||
} else {
|
} else {
|
||||||
callback(data[0].url); // 假设返回的 JSON 中包含上传文件的 URL,调用回调函数并传入 URL
|
callback(data.url); // 假设返回的 JSON 中包含上传文件的 URL,调用回调函数并传入 URL
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user