第一步:找到/vendor/yiisoft/yii2/web/UrlManager.php第二步:搜索$url = "$baseUrl?{$this->routeParam}=" . urlencode($route);把这句修改为$url = "$baseUrl?{$this->routeParam}=" . $route; 如图: