修改了编辑框1114444133444

This commit is contained in:
wucongxing8150 2025-08-13 17:29:31 +08:00
parent 5005bf94c3
commit bfb48727e7

View File

@ -101,11 +101,11 @@
// UEditor // UEditor
const editorDependencies = computed(() => { const editorDependencies = computed(() => {
if (isProduction.value) { if (isProduction.value) {
// 线使 // 线使UEDITOR_HOME_URL
return [ return [
'/admin/web/UEditorPlus/ueditor.config.js', 'ueditor.config.js',
'/admin/web/UEditorPlus/ueditor.all.js', 'ueditor.all.js',
'/admin/web/UEditorPlus/lang/zh-cn/zh-cn.js' 'lang/zh-cn/zh-cn.js'
] ]
} }
// 使 // 使
@ -118,8 +118,12 @@
const editorConfig = reactive({ const editorConfig = reactive({
// - // -
UEDITOR_HOME_URL: ueditorBasePath.value, get UEDITOR_HOME_URL() {
UEDITOR_CORS_URL: ueditorBasePath.value, return ueditorBasePath.value
},
get UEDITOR_CORS_URL() {
return ueditorBasePath.value
},
// 使 // 使
loadConfigFromServer: false, loadConfigFromServer: false,
@ -418,13 +422,21 @@
// //
onMounted(() => { onMounted(() => {
// UEditor
const currentUeditorBasePath = ueditorBasePath.value
console.log('设置UEditor全局路径:', currentUeditorBasePath)
// UEditor // UEditor
window.UEDITOR_HOME_URL = ueditorBasePath.value; window.UEDITOR_HOME_URL = currentUeditorBasePath;
window.UEDITOR_CORS_URL = ueditorBasePath.value; window.UEDITOR_CORS_URL = currentUeditorBasePath;
// UEditor // UEditor
window.UEDITOR_CONFIG = window.UEDITOR_CONFIG || {}; window.UEDITOR_CONFIG = window.UEDITOR_CONFIG || {};
//
window.UEDITOR_CONFIG.UEDITOR_HOME_URL = currentUeditorBasePath;
window.UEDITOR_CONFIG.UEDITOR_CORS_URL = currentUeditorBasePath;
// - // -
window.UEDITOR_CONFIG.onImageUploadSuccess = function(result) { window.UEDITOR_CONFIG.onImageUploadSuccess = function(result) {
console.log('=== 图片上传成功回调开始 ==='); console.log('=== 图片上传成功回调开始 ===');