| | |
| | | this.editor.config.uploadImgServer = uploadFile; |
| | | // xboot如要header中传入token鉴权 |
| | | this.editor.config.uploadImgHeaders = { |
| | | accessToken: that.getStore("accessToken"), |
| | | accessToken: that.getSessionStore("accessToken"), |
| | | }; |
| | | this.editor.config.uploadFileName = "file"; |
| | | this.editor.config.uploadImgHooks = { |
| | |
| | | if (this.uploadVideo) { |
| | | this.editor.config.uploadVideoServer = uploadFile; |
| | | this.editor.config.uploadVideoHeaders = { |
| | | accessToken: that.getStore("accessToken"), |
| | | accessToken: that.getSessionStore("accessToken"), |
| | | }; |
| | | this.editor.config.uploadVideoName = "file"; |
| | | this.editor.config.uploadVideoHooks = { |