material-ui icon indicating copy to clipboard operation
material-ui copied to clipboard

使用material-ui 模版,在使用helpers/terminal/artisan插件的时候有bug

Open OranTing opened this issue 6 years ago • 2 comments

如图所示。 使用默认模版的时候是正常的。 具体表现在,选择artisan命令的时候,会自动出现红框所示的代码。

snip20190102_8

OranTing avatar Jan 02 '19 05:01 OranTing

这个问题我今天遇到了,应该插件改写了样式造成的。可以看图3中。 image image image

michaelwzk avatar Feb 12 '20 09:02 michaelwzk

Hey! I confirm, there are errors when using the plugin material-ui. The error description can be viewed in the web browser console. Error in JS. Therefore, the use of laravel-admin with material-ui causes such bugs that you showed in the screenshot. To solve the problem, I created my own MaterialUIServiceProvider, the same as in the installed extension. I connected it according to all the Laravel rules. And commented out line # 45 in the file MaterialUIServiceProvider.php: // Admin::script('$.material.init()'); The JS error is gone. Plugin initialization at that point was causing an error.

Volodymyr-Shtyka avatar Feb 12 '21 07:02 Volodymyr-Shtyka