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