修改了编辑框1114444133

This commit is contained in:
wucongxing8150 2025-08-13 17:24:59 +08:00
parent d8651570a3
commit 5005bf94c3
2 changed files with 15 additions and 4 deletions

View File

@ -1,5 +1,5 @@
(function () {
var URL = window.UEDITOR_HOME_URL || getUEBasePath(document.currentScript || document.scripts[document.scripts.length - 1]));
var URL = window.UEDITOR_HOME_URL || getUEBasePath(document.currentScript || document.scripts[document.scripts.length - 1]);
window.UEDITOR_CONFIG = {
UEDITOR_HOME_URL: URL,

View File

@ -99,11 +99,22 @@
const editorReady = ref(false)
// UEditor
const editorDependencies = [
const editorDependencies = computed(() => {
if (isProduction.value) {
// 线使
return [
'/admin/web/UEditorPlus/ueditor.config.js',
'/admin/web/UEditorPlus/ueditor.all.js',
'/admin/web/UEditorPlus/lang/zh-cn/zh-cn.js'
]
}
// 使
return [
'ueditor.config.js',
'ueditor.all.js',
'lang/zh-cn/zh-cn.js'
]
]
})
const editorConfig = reactive({
// -
@ -489,7 +500,7 @@
};
//
editorDependencies.forEach(dep => {
editorDependencies.value.forEach(dep => {
fetch(dep)
.then(response => {
if (!response.ok) {