mirror of
https://gitee.com/niucloud-team/niucloud.git
synced 2025-12-16 11:32:49 +00:00
update admin
This commit is contained in:
parent
d3c47201ec
commit
af96bb867b
@ -833,7 +833,7 @@
|
|||||||
for (i = 0; i < this.imageList.length; i++) {
|
for (i = 0; i < this.imageList.length; i++) {
|
||||||
data = this.imageList[i];
|
data = this.imageList[i];
|
||||||
list.push({
|
list.push({
|
||||||
src: prefix + data.url,
|
src: (data.url.indexOf('http://') == -1 && data.url.indexOf('https://') == -1) ? prefix + data.url : data.url,
|
||||||
_src: prefix + data.url,
|
_src: prefix + data.url,
|
||||||
alt: data.original,
|
alt: data.original,
|
||||||
floatStyle: align
|
floatStyle: align
|
||||||
|
|||||||
@ -328,7 +328,7 @@
|
|||||||
for (var key in uploadVideoList) {
|
for (var key in uploadVideoList) {
|
||||||
var file = uploadVideoList[key];
|
var file = uploadVideoList[key];
|
||||||
videoObjs.push({
|
videoObjs.push({
|
||||||
url: uploadDir + file.url,
|
url: (file.url.indexOf('http://') == -1 && file.url.indexOf('https://') == -1) ? uploadDir + file.url : file.url,
|
||||||
width: width,
|
width: width,
|
||||||
height: height,
|
height: height,
|
||||||
align: align
|
align: align
|
||||||
|
|||||||
@ -38,7 +38,7 @@ function addOkListener() {
|
|||||||
for (var j = 0, url; url = imageUrls[j++];) {
|
for (var j = 0, url; url = imageUrls[j++];) {
|
||||||
// console.log('url',src, url);
|
// console.log('url',src, url);
|
||||||
if (src.indexOf(url.name.replace(" ", "")) != -1) {
|
if (src.indexOf(url.name.replace(" ", "")) != -1) {
|
||||||
img.src = urlPrefix + url.url;
|
img.src = (url.url.indexOf('http://') == -1 && url.url.indexOf('https://') == -1) ? urlPrefix + url.url : url.url;
|
||||||
img.setAttribute("_src", urlPrefix + url.url); //同时修改"_src"属性
|
img.setAttribute("_src", urlPrefix + url.url); //同时修改"_src"属性
|
||||||
img.setAttribute("title", url.title);
|
img.setAttribute("title", url.title);
|
||||||
domUtils.removeAttributes(img, ["data-word-image", "style", "width", "height"]);
|
domUtils.removeAttributes(img, ["data-word-image", "style", "width", "height"]);
|
||||||
|
|||||||
@ -30460,7 +30460,7 @@ UE.plugin.register("simpleupload", function () {
|
|||||||
if ('SUCCESS' === res.data.state && res.data.url) {
|
if ('SUCCESS' === res.data.state && res.data.url) {
|
||||||
const loader = me.document.getElementById(loadingId);
|
const loader = me.document.getElementById(loadingId);
|
||||||
domUtils.removeClasses(loader, "uep-loading");
|
domUtils.removeClasses(loader, "uep-loading");
|
||||||
const link = me.options.imageUrlPrefix + res.data.url;
|
const link = (res.data.url.indexOf('http://') == -1 && res.data.url.indexOf('https://') == -1) ? me.options.imageUrlPrefix + res.data.url : res.data.url;
|
||||||
loader.setAttribute("src", link);
|
loader.setAttribute("src", link);
|
||||||
loader.setAttribute("_src", link);
|
loader.setAttribute("_src", link);
|
||||||
loader.setAttribute("alt", res.data.original || "");
|
loader.setAttribute("alt", res.data.original || "");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user