ソースを参照

修复widget添加js代码异常问题

jqh 4 年 前
コミット
76f67a4f1b
1 ファイル変更1 行追加1 行削除
  1. 1 1
      src/Widgets/Widget.php

+ 1 - 1
src/Widgets/Widget.php

@@ -204,7 +204,7 @@ abstract class Widget implements Renderable
 
         $result = Admin::resolveHtml(view($this->view, $this->variables()), ['runScript' => $this->runScript]);
 
-        $this->script = $result['script'];
+        $this->script .= $result['script'];
 
         return $result['html'];
     }