jqh 4 years ago
parent
commit
250cb4b53b
2 changed files with 3 additions and 3 deletions
  1. 1 1
      README.md
  2. 2 2
      src/Layout/Asset.php

+ 1 - 1
README.md

@@ -77,7 +77,7 @@
 
 > 如果安装过程中出现`composer`下载过慢或安装失败的情况,请运行命令`composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/`把`composer`镜像更换为阿里云镜像。
 
-首先需要安装`laravel`,如已安装可以跳过此步骤
+首先需要安装`laravel`框架,如已安装可以跳过此步骤。如果您是第一次使用`laravel`,请务必先阅读文档 [安装 《Laravel中文文档》](https://learnku.com/docs/laravel/8.x/installation/9354) !
 ```bash
 composer create-project --prefer-dist laravel/laravel 项目名称 7.*
 # 或

+ 2 - 2
src/Layout/Asset.php

@@ -764,8 +764,8 @@ class Asset
      */
     public function scriptToHtml()
     {
-        $script = implode(';', array_unique($this->script));
-        $directScript = implode(';', array_unique($this->directScript));
+        $script = implode(";\n", array_unique($this->script));
+        $directScript = implode(";\n", array_unique($this->directScript));
 
         return <<<HTML
 <script data-exec-on-popstate>