Skip to content

Commit

Permalink
修复:页面静态资源路径生成
Browse files Browse the repository at this point in the history
  • Loading branch information
dxkite committed Jul 1, 2019
1 parent aa56e61 commit a4d92bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion suda/src/application/template/CompilableTemplate.php
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ protected function getStaticPrefix()
} else {
$prefix = '/assets';
}
return $prefix . '/' . $this->getStaticName();
return '/'.ltrim($prefix, '/') . '/' . $this->getStaticName();
}

protected function prepareStaticSource()
Expand Down

0 comments on commit a4d92bf

Please sign in to comment.