huwhois 2 年之前
父节点
当前提交
63b558665c
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      view/sys/article/save.html

+ 3 - 2
view/sys/article/save.html

@@ -161,7 +161,7 @@
             //图片上传
             simpleUpload: {
                 // The URL the images are uploaded to.
-                uploadUrl: '/sys/file_manager/ckeditorUploadImage'
+                uploadUrl: '/sys/file_manager/ckeditorUploadImage?infoid={$data.id}&cjid={$data.cjid}'
             },
             //自定义字体
             fontFamily: {
@@ -232,6 +232,7 @@
 
     //添加标题图
     function addTitlePic() {
-        layer_show('添加标题图', '{:url("file_manager/uploadimg", ["_layer"=>true,"img_id"=>"titlepic"])}', 800, 500);
+        let url = '{:url("file_manager/uploadimg", ["_layer"=>true,"img_id"=>"titlepic","infoid"=>$data.id,"cjid"=>$data.cjid])}'
+        layer_show('添加标题图', url, 800, 500);
     }
 </script>