fix router

This commit is contained in:
joyqi
2024-01-04 23:13:16 +08:00
parent 1c3b86fc22
commit f23e825b95

View File

@@ -187,6 +187,10 @@ class Archive extends Contents
/** 用于判断是路由调用还是外部调用 */
if (null == $parameter->type) {
if (!isset(Router::$current)) {
throw new WidgetException('Archive type is not set', 500);
}
$parameter->type = Router::$current;
} else {
$this->invokeFromOutside = true;