dever 6 vuotta sitten
vanhempi
commit
94d0eb29e9
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  1. 2 1
      assets/lib/manage/main.js

+ 2 - 1
assets/lib/manage/main.js

@@ -85,6 +85,7 @@ function initUpdate()
 						var url = $('#editor_applet_pic').val();
 						var appid = $('#editor_applet_id').val();
 						var path = $('#editor_applet_path').val();
+						var link = $('#editor_applet_link').val();
 						if (!appid) {
 							//alert('请选择小程序');
 							//return;
@@ -100,7 +101,7 @@ function initUpdate()
 						
 						
 						var w = 750/2;
-						KindEditor.insertHtml('#' + value, '<img src="'+url+'" style="width:'+w+'px;" data-applet="'+url+'||'+appid+'||'+path+'"/>');
+						KindEditor.insertHtml('#' + value, '<img src="'+url+'" style="width:'+w+'px;" data-applet="'+url+'||'+appid+'||'+path+'||'+link+'"/>');
 						layer.closeAll();
 					};
 					showAlert(t, func, title);