Bläddra i källkod

静态资源别名判断方法bug修复

jqh 5 år sedan
förälder
incheckning
d2cf5c28eb
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      src/Layout/Asset.php

+ 1 - 1
src/Layout/Asset.php

@@ -470,7 +470,7 @@ class Asset
      */
     protected function hasAlias($value)
     {
-        return $value && mb_strpos($value, '@') !== false;
+        return $value && mb_strpos($value, '@') === 0;
     }
 
     /**