|  |  | 
 |  |  |     /> | 
 |  |  |   </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.editor = Object.seal(editor) | 
 |  |  |     }, | 
 |  |  |     onChange (editor) { | 
 |  |  |       console.log(this.html); | 
 |  |  |       // console.log(this.html); | 
 |  |  |       // debugger | 
 |  |  |       if (!this.html||this.content.content==this.html) { | 
 |  |  |         return | 
 |  |  | 
 |  |  |       this.$emit('edit', this.html) | 
 |  |  |     }, | 
 |  |  |   }, | 
 |  |  |    | 
 |  |  |  | 
 |  |  | } | 
 |  |  | </script> | 
 |  |  |  | 
 |  |  | <style src="@wangeditor/editor/dist/css/style.css"></style> | 
 |  |  | <style src="@wangeditor/editor/dist/css/style.css"></style> |