修改editor样式

This commit is contained in:
GGJ
2024-10-12 11:23:52 +08:00
parent de872782d3
commit 7062305c01
6 changed files with 80 additions and 11 deletions

View File

@@ -28,11 +28,11 @@ onMounted(() => {
const toolbarConfig = {
excludeKeys: ['fullScreen', 'emotion']
}
let sever = '/system-boot/file/upload'
let sever = '/api/system-boot/file/upload'
// 本地加api
if (process.env.NODE_ENV === 'development') {
sever = '/api' + sever
}
// if (process.env.NODE_ENV === 'development') {
// sever = '/api' + sever
// }
type InsertFnType = (url: string, alt: string, href: string) => void
const editorConfig = {
placeholder: '请输入内容...',
@@ -40,6 +40,7 @@ const editorConfig = {
uploadImage: {
server: sever,
fieldName: 'file',
maxFileSize: 10 * 1024 * 1024,
compress: true,
uploadFileName: 'file',
withCredentials: true,