| | |
| | | /> |
| | | </div> |
| | | </template> |
| | | |
| | | |
| | | <script> |
| | | import { Editor, Toolbar } from '@wangeditor/editor-for-vue' |
| | | export default { |
| | |
| | | uploadImage: { |
| | | // server: '/api/upload', |
| | | name: 'file', |
| | | server: process.env.VUE_APP_API_PREFIX + '/public/uploadPicture', |
| | | server: process.env.VUE_APP_API_PREFIX + '/public/uploadLocal', |
| | | meta: { |
| | | folder: 'shop' |
| | | }, |
| | |
| | | console.log(`${file.name} 上传出错`, err, res) |
| | | }, |
| | | }, |
| | | |
| | | |
| | | } |
| | | }, |
| | | mode: 'default', // or 'simple' |
| | |
| | | this.$emit('edit', this.html) |
| | | }, |
| | | }, |
| | | |
| | | |
| | | } |
| | | </script> |
| | | |
| | | <style src="@wangeditor/editor/dist/css/style.css"></style> |
| | | <style src="@wangeditor/editor/dist/css/style.css"></style> |