Skip to content

Commit

Permalink
修复视频上传 csrf_token 问题
Browse files Browse the repository at this point in the history
  • Loading branch information
jonexyz committed May 11, 2022
1 parent f84e94d commit 0916618
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Editor.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ public function render()
var editor = new E('#{$this->id}');
editor.config.uploadImgParams = {_token: '$token'}
editor.config.uploadVideoParams = {_token: '$token'}
Object.assign(editor.config, {$config})
Expand Down

0 comments on commit 0916618

Please sign in to comment.