修改了编辑框1114

This commit is contained in:
wucongxing8150 2025-08-13 17:11:53 +08:00
parent 6449dd9d19
commit 220781f044

View File

@ -46,6 +46,18 @@
// store
const userStore = useUserStore()
// UEditor
const isProduction = computed(() => {
return apiBase.includes('dev-casedata.igandan.com') || apiBase.includes('casedata.igandan.com')
})
const ueditorBasePath = computed(() => {
if (isProduction.value) {
return '/admin/web/UEditorPlus/'
}
return '/UEditorPlus/'
})
const props = defineProps({
//
modelValue: {
@ -86,8 +98,8 @@
const editorConfig = reactive({
// -
UEDITOR_HOME_URL: '/UEditorPlus/',
UEDITOR_CORS_URL: '/UEditorPlus/',
UEDITOR_HOME_URL: ueditorBasePath.value,
UEDITOR_CORS_URL: ueditorBasePath.value,
// 使
loadConfigFromServer: false,
@ -387,8 +399,8 @@
//
onMounted(() => {
// UEditor
window.UEDITOR_HOME_URL = '/UEditorPlus/';
window.UEDITOR_CORS_URL = '/UEditorPlus/';
window.UEDITOR_HOME_URL = ueditorBasePath.value;
window.UEDITOR_CORS_URL = ueditorBasePath.value;
// UEditor
window.UEDITOR_CONFIG = window.UEDITOR_CONFIG || {};