php - 有laravel开发过UEditor的大佬吗?
本文介绍了php - 有laravel开发过UEditor的大佬吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
问 题
后台配置项返回格式出错,上传功能将不能正常使用! 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 的这个修改版里时区直接用的系统时区,没毛病)
解决方案
在本地开发阶段的时候需要注释掉config文件里的
'core' => [
'route' => [
(注释掉这里) // 'middleware' => 'auth',
],
这样就能用了,但是在项目上线之前要依据自己的项目,编写对应的中间件,比如这个文本编辑器所属的视图是后端管理员的,就要走管理员的auth的中间件,如果是前端用户的就要用前端用户的中间件。
这篇关于php - 有laravel开发过UEditor的大佬吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文