update images upload (#944)

* update images upload

* modify js res.url
This commit is contained in:
hotqin888
2024-06-03 10:58:07 +08:00
committed by gsw945
parent 7b3f9940d7
commit 7288f6d2c7
5 changed files with 331 additions and 279 deletions

View File

@@ -53,8 +53,10 @@ $(function () {
shade: [0.1, '#fff'] // 0.1 透明度的白色背景
});
} else if ($state === "success") {
if ($res.errcode === 0) {
var value = '![](' + $res.url + ')';
// if ($res.errcode === 0) {
// var value = '![](' + $res.url + ')';
if ($res[0].errcode === 0) {
var value = '![](' + $res[0].url + ')';
window.editor.insertValue(value);
}
}