瀏覽代碼

210808 path fix

yukyo0821 3 年之前
父節點
當前提交
03ab819242
共有 1 個文件被更改,包括 4 次插入5 次删除
  1. 4 5
      backstage/static/js/editor.js

+ 4 - 5
backstage/static/js/editor.js

@@ -118,11 +118,10 @@ axios.get(contentApiUrl).then(({ data }) => {
         class: ImageTool,
         config: {
           endpoints: {
-            /*             byFile: '/backstage/upload' + JSON.parse(document.getElementById('url').textContent).url, // Your backend file uploader endpoint
-                        byUrl: '/backstage/getimage' + JSON.parse(document.getElementById('url').textContent).url, // Your endpoint that provides uploading by Url
-            */
-            byFile: '/backstage/upload/' + $('#ctitle').val(), // Your backend file uploader endpoint
-            byUrl: '/backstage/getimage/' + $('#ctitle').val(), // Your endpoint that provides uploading by Url
+            byFile: '/backstage/upload' + JSON.parse(document.getElementById('url').textContent).url, // Your backend file uploader endpoint
+            byUrl: '/backstage/getimage' + JSON.parse(document.getElementById('url').textContent).url, // Your endpoint that provides uploading by Url
+            /* byFile: '/backstage/upload/' + $('#ctitle').val(), // Your backend file uploader endpoint
+            byUrl: '/backstage/getimage/' + $('#ctitle').val(), // Your endpoint that provides uploading by Url */
           }
         }
       }