fix: 修复文件编码问题

This commit is contained in:
Ray.Hao
2026-01-29 10:35:53 +08:00
parent 6ff4a65ec9
commit da7163f463
23 changed files with 279 additions and 128 deletions

View File

@@ -1,23 +1,23 @@
<!--
* 基于 wangEditor-next çšå¯Œææœ¬ç¼è¾å¨ç»ä»äºŒæ¬¡å°<EFBFBD>è£?
* çˆæ<EFBFBD>ƒææœ?© 2021-present æœæ<EFBFBD>¥å¼æº<EFBFBD>ç»ç»?
* 基于 wangEditor-next 的富文本编辑器组件二次封装
* 版权所属 © 2021-present 有来开源组织
*
* 开源协议https://opensource.org/licenses/MIT
* 项目地址https://gitee.com/youlaiorg/vue3-element-admin
*
* åœ¨ä½¿ç¨æï¼Œè¯·ä¿<EFBFBD>çæ­¤æ³¨éŠï¼ŒæŸè°¢æ¨å¯¹å¼æº<EFBFBD>çšæ¯æŒ<EFBFBD>ï¼?
* 在使用时请保留此注释感谢您对开源的支持
-->
<template>
<div style="z-index: 999; border: 1px solid var(--el-border-color)">
<!-- 工巿 ?-->
<!-- 工具栏 -->
<Toolbar
:editor="editorRef"
mode="simple"
:default-config="toolbarConfig"
style="border-bottom: 1px solid var(--el-border-color)"
/>
<!-- ç¼è¾å?-->
<!-- 编辑器 -->
<Editor
v-model="modelValue"
:style="{ height: height, overflowY: 'hidden' }"
@@ -51,15 +51,15 @@ const modelValue = defineModel("modelValue", {
required: false,
});
// 编辑器实例,必须ç”?shallowRef,é‡<C3A9>è¦<C3A8>ï¼<C3AF>
// 编辑器实例,必须用 shallowRef重要
const editorRef = shallowRef();
// 工具æ <EFBFBD>é…<EFBFBD>ç½?
// 工具栏配置
const toolbarConfig = ref<Partial<IToolbarConfig>>({});
// ç¼è¾å™¨é…<EFBFBD>ç½?
// 编辑器配置
const editorConfig = ref<Partial<IEditorConfig>>({
placeholder: "请输入内�..",
placeholder: "请输入内容..",
MENU_CONF: {
uploadImage: {
customUpload(file: File, insertFn: InsertFnType) {