diff --git a/package.json b/package.json
index a00e8a3e..aae11e3d 100755
--- a/package.json
+++ b/package.json
@@ -11,10 +11,9 @@
"dependencies": {
"@element-plus/icons-vue": "^2.0.9",
"@saber/nf-design-base-elp": "^1.0.0",
- "@smallwei/avue": "^3.2.13",
- "@wangeditor/editor": "^5.1.23",
- "@wangeditor/editor-for-vue": "^5.1.12",
+ "@smallwei/avue": "^3.2.15",
"animate.css": "^4.1.1",
+ "avue-plugin-ueditor": "^1.0.1",
"axios": "^0.21.1",
"crypto-js": "^4.1.1",
"dayjs": "^1.10.6",
@@ -40,4 +39,4 @@
"vite-plugin-compression": "^0.5.1",
"vite-plugin-vue-setup-extend": "^0.4.0"
}
-}
+}
\ No newline at end of file
diff --git a/src/components/avue-ueditor/main.vue b/src/components/avue-ueditor/main.vue
deleted file mode 100644
index 0a984099..00000000
--- a/src/components/avue-ueditor/main.vue
+++ /dev/null
@@ -1,70 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/src/main.js b/src/main.js
index 5e0c3806..09c2e9f1 100755
--- a/src/main.js
+++ b/src/main.js
@@ -14,7 +14,7 @@ import crudCommon from '@/mixins/crud.js';
import { getScreen } from './utils/util';
import './permission';
import error from './error';
-import avueUeditor from 'components/avue-ueditor/main.vue';
+import avueUeditor from 'avue-plugin-ueditor';
import basicBlock from 'components/basic-block/main.vue';
import basicContainer from 'components/basic-container/main.vue';
import thirdRegister from './components/third-register/main.vue';
@@ -33,7 +33,6 @@ const app = createApp(App);
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
app.component(key, component);
}
-app.component('avueUeditor', avueUeditor);
app.component('basicContainer', basicContainer);
app.component('basicBlock', basicBlock);
app.component('thirdRegister', thirdRegister);
@@ -54,5 +53,6 @@ app.use(Avue, {
calcHeight: 10,
locale: messages[language],
});
+app.use(avueUeditor, { axios })
app.use(NfDesignBase);
app.mount('#app');