瀏覽代碼

Compatibilité IE : update polyfill

refactoring
Guillaume Bourgeois 5 年之前
父節點
當前提交
647bb14a11
共有 3 個文件被更改,包括 8 次插入5 次删除
  1. +1
    -1
      common/assets/CommonAsset.php
  2. +7
    -1
      common/components/MyAssetBundle.php
  3. +0
    -3
      common/web/js/promise-polyfill/polyfill.min.js

+ 1
- 1
common/assets/CommonAsset.php 查看文件

@@ -66,7 +66,7 @@ class CommonAsset extends \common\components\MyAssetBundle
// js
$this->addAsset('js','js/jquery-ui-1.11.4.custom/jquery-ui.min.js');
$this->addAsset('js','js/promise-polyfill/polyfill.min.js');
$this->addAsset('js','https://polyfill.io/v3/polyfill.js?features=default%2CArray.prototype.find%2CIntl');
$this->addAsset('js','js/promise-polyfill/promise.min.js');
$this->addAsset('js','js/axios/axios.min.js');
$this->addAsset('js','js/vuejs/vue.js');

+ 7
- 1
common/components/MyAssetBundle.php 查看文件

@@ -47,6 +47,12 @@ class MyAssetBundle extends AssetBundle
public function addAsset($type, $path)
{
$this->$type[] = $path.'?v='.filemtime(Yii::getAlias($this->sourcePath.'/'.$path)) ;
if(substr($path, 0, 4) == 'http') {
$this->$type[] = $path ;
}
else {
$this->$type[] = $path.'?v='.filemtime(Yii::getAlias($this->sourcePath.'/'.$path)) ;
}
}
}

+ 0
- 3
common/web/js/promise-polyfill/polyfill.min.js
文件差異過大導致無法顯示
查看文件


Loading…
取消
儲存