notadd / neditor

基于 ueditor的更现代化的富文本编辑器,支持HTTPS
https://demo.neditor.notadd.com/
MIT License
1.91k stars 267 forks source link

上传图片如何使用配置headers?需要jwt认证 #156

Closed mvpwar closed 4 years ago

mvpwar commented 5 years ago

看到neditor.service.js有个setFormData方法有涉及到headers,但不知道怎么使用

Yinyihang857 commented 5 years ago

我也在想这个问题呢老哥解决没?

lam0114 commented 4 years ago

直接data.xxxx= xxx;header.token = 'xxxxx'; 可以直接修改对象。里面的数据是引用的 https://github.com/notadd/neditor/issues/169#issuecomment-568871949