@@ -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'); |
@@ -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)) ; | |||
} | |||
} | |||
} |