src/Leevel/Router/View.php
public function switchView(IViews $theme): IView
    {
        $assign = $this->getAssign();

        $this->theme = $theme;
        $this->assign($assign);

        return $this;
    }
public function switchView(IViews $theme): IView
    {
        $assign = $this->getAssign();

        $this->theme = $theme;
        $this->assign($assign);

        return $this;
    }
切换视图.

@param \Leevel\View\IView $theme

@return $this