Browse Source

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

jqh 4 years ago
parent
commit
76f67a4f1b
1 changed files with 1 additions and 1 deletions
  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'];
     }