Преглед изворни кода

修复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'];
     }