后臺配置項返回格式出錯,上傳功能將不能正常使用! ueditor.all.js:8111
showErrorMsg @ ueditor.all.js:8111
onsuccess @ ueditor.all.js:8098
xhr.onreadystatechange @ ueditor.all.js:8237
XMLHttpRequest.send (async)
doAjax @ ueditor.all.js:8247
request @ ueditor.all.js:8391
(anonymous) @ ueditor.all.js:8088
setTimeout (async)
UE.Editor.loadServerConfig @ ueditor.all.js:8078
UE.Editor @ ueditor.all.js:6751
UE.ui.Editor @ ueditor.all.js:29333
UE.getEditor @ ueditor.all.js:29457
(anonymous) @ edit:165
這是咋回事啊?(別跟我講改時區那個,laravel——composer install 的這個修改版里時區直接用的系統時區,沒毛病)
2 回答
慕俠2389804
TA貢獻1719條經驗 獲得超6個贊
在本地開發階段的時候需要注釋掉config文件里的
'core' => [
'route' => [
(注釋掉這里) // 'middleware' => 'auth',
],
這樣就能用了,但是在項目上線之前要依據自己的項目,編寫對應的中間件,比如這個文本編輯器所屬的視圖是后端管理員的,就要走管理員的auth的中間件,如果是前端用戶的就要用前端用戶的中間件。
- 2 回答
- 0 關注
- 473 瀏覽
添加回答
舉報
0/150
提交
取消
