小细节优化

This commit is contained in:
tale
2016-01-29 15:01:49 +08:00
parent 7609595eba
commit 609d5a705c
3 changed files with 3 additions and 3 deletions

View File

@@ -294,7 +294,7 @@ function trace($log = '[think]', $level = 'log')
* @param array $vars 模板变量
* @return string
*/
function V($template, $vars)
function V($template = '', $vars = [])
{
return \think\View::instance(\think\Config::get())->fetch($template, $vars);
}