namespace app\admin\controller;
use think\facade\View;
class Index extends BaseController
{
public function index()
{
return view();
}
}运行后报错:[0] TemplateNotFoundException in Think.php line 146
模板文件不存在:D:\PhpstormProjects\tp6\app\admin\view\.html在渲染的时候必须要这么写:return view('index/index');请问有什么办法可以默认打开当前操作对应的视图吗最佳答案