| | |
| | | import { ElMessage } from 'element-plus' |
| | | import { useLocaleStore } from '@/store/modules/locale' |
| | | import { getAccessToken, getTenantId } from '@/utils/auth' |
| | | import { getUploadUrl } from '@/components/UploadFile/src/useUpload' |
| | | |
| | | defineOptions({ name: 'Editor' }) |
| | | |
| | |
| | | scroll: true, |
| | | MENU_CONF: { |
| | | ['uploadImage']: { |
| | | server: import.meta.env.VITE_UPLOAD_URL, |
| | | server: getUploadUrl(), |
| | | // 单个文件的最大体积限制,默认为 2M |
| | | maxFileSize: 5 * 1024 * 1024, |
| | | // 最多可上传几个文件,默认为 100 |
| | |
| | | } |
| | | }, |
| | | ['uploadVideo']: { |
| | | server: import.meta.env.VITE_UPLOAD_URL, |
| | | server: getUploadUrl(), |
| | | // 单个文件的最大体积限制,默认为 10M |
| | | maxFileSize: 10 * 1024 * 1024, |
| | | // 最多可上传几个文件,默认为 100 |