I defined and used the configuration config according to your method, but the following error appeared on the web page.
Fatal error: Uncaught exception 'think\exception\ErrorException' with message 'include(): Filename cannot be empty' in F:\wamp\www\thinkphp\thinkphp\library\think\exception\Handle.php on line 166