From 09beccc30befbac7a0caaffdb1af4a0f525104b4 Mon Sep 17 00:00:00 2001 From: wolfcode <37436228+wolf-leo@users.noreply.github.com> Date: Fri, 7 Jun 2024 09:41:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=BD=93=E4=BF=AE=E6=94=B9=E5=90=8E?= =?UTF-8?q?=E5=8F=B0=E8=B7=AF=E5=BE=84=E6=97=B6=E7=99=BE=E5=BA=A6=E7=BC=96?= =?UTF-8?q?=E8=BE=91=E5=99=A8=E9=85=8D=E7=BD=AE=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/static/plugs/ueditor/ueditor.config.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/public/static/plugs/ueditor/ueditor.config.js b/public/static/plugs/ueditor/ueditor.config.js index 37af1ca..9b91525 100644 --- a/public/static/plugs/ueditor/ueditor.config.js +++ b/public/static/plugs/ueditor/ueditor.config.js @@ -38,7 +38,6 @@ } else { CORS_URL = getUEBasePath(); } - /** * 配置项主体。注意,此处所有涉及到路径的配置别遗漏URL变量。 */ @@ -53,7 +52,7 @@ debug: false, // 服务器统一请求接口路径 - serverUrl: "/admin/ajax/uploadUEditor", + serverUrl: "/" + (window.CONFIG.ADMIN || 'admin') + "/ajax/uploadUEditor", // 服务器统一请求头信息,会在所有请求中带上该信息 serverHeaders: { // 'Authorization': 'Bearer xxx'