The path problem of integrating Baidu UEditor into vue2js Project

A recent vue2 project of the company requires a Baidu UEditor rich text editor. Encountered a point path problem in the process of integration, the resource directory cannot be accessed, and the screenshot of the project directory

clipboard.png

clipboard.png
//


//

clipboard.png

//

clipboard.png

//

clipboard.png

clipboard.png

I would like to ask the great gods of vue, have they ever encountered similar problems with this? I hope the gods will be grateful for their advice

Mar.06,2021

should still be your path problem. It starts from the root directory of the project. I put
under static to remove appAdmin, and then the following is the introduction of other static resources.


githubvuehttps://github.com/yiwuyu/vue-ueditor






webpackwebpack


ueditor.config.js file path change, var URL = window.UEDITOR_HOME_URL | | "/ static/xxx/";


is re-packaged and put under static


I would like to ask how to solve this path reference problem at last. At present, I also encounter this problem. I feel like I have a headache and haven't been able to get any results for a long time!

Menu