Procházet zdrojové kódy

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

jqh před 4 roky
rodič
revize
76f67a4f1b
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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'];
     }