diff --git a/package-lock.json b/package-lock.json index ac6eac81c34a5d166afe833790d1d5e4291e24e7..677daa64392f4ed7fdd5bfe4df4eef1748ae0abb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4053,7 +4053,7 @@ "version": "5.1.6", "resolved": "https://registry.npmmirror.com/typescript/-/typescript-5.1.6.tgz", "integrity": "sha512-zaWCozRZ6DLEWAWFrVDz1H6FVXzUSfTy5FUMWsQlU8Ym5JP9eO4xkTIROFCQvhQf61z6O/G6ugw3SgAnvvm+HA==", - "devOptional": true, + "dev": true, "peer": true, "bin": { "tsc": "bin/tsc", diff --git a/src/main.js b/src/main.js index 989e84c99bd9a81c0702acd17140fcd3db24b4c5..0389af22942ea861b2635955a540d141fab8a59c 100644 --- a/src/main.js +++ b/src/main.js @@ -1,17 +1,18 @@ -import './assets/main.css' +import './assets/main.css'; -import { createApp } from 'vue' -import App from './App.vue' -import router from './router' -import ElementPlus from 'element-plus' -import 'element-plus/dist/index.css' +import { createApp } from 'vue'; +import App from './App.vue'; +import router from './router'; +import ElementPlus from 'element-plus'; +import 'element-plus/dist/index.css'; +import { createPinia } from 'pinia'; -import CKEditor from '@ckeditor/ckeditor5-vue'; +// import CKEditor from '@ckeditor/ckeditor5-vue'; -const app = createApp(App) +const app = createApp(App); +app.use(createPinia()); +app.use(router); +app.use(ElementPlus); +// app.use( CKEditor) -app.use(router) -app.use(ElementPlus) -app.use( CKEditor) - -app.mount('#app') +app.mount('#app'); diff --git a/src/views/customer/components/Operation.vue b/src/views/customer/components/Operation.vue index d1a44ed57ef45a9b96f9c94f2fa8af28117bfa00..eeb0c5601c945ded2d1d4b37bb402cec68aae248 100644 --- a/src/views/customer/components/Operation.vue +++ b/src/views/customer/components/Operation.vue @@ -6,7 +6,7 @@
{ console.log('user ===' + props.user); const editor = ClassicEditor; -const editorDesign = ref(''); //默认内容 -const editorConfig = reactive({ +// 存放 Editor 的設定 (Ex: 工具列) +const editorConfig = { + extraPlugins: [MyAdapterPlugin], + // placeholder:"请输入聊天消息", + // 語言 中文 language: 'zh-cn', - // plugins:[], + // 工具列 toolbar: { items: [ // 'heading', @@ -130,7 +132,7 @@ const editorConfig = reactive({ // 'redo' ], }, -}); +}; const emit = defineEmits(['ready', 'focus', 'blur', 'input', 'destroy']); const editorRef = ref(null); @@ -203,7 +205,7 @@ const send = () => { }) ); - editorDesign.value = ''; + editorResult.value = ''; }; /**