From 8c7bfed3bc662b24d2316e700d0d2d1a218de4ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=9D=8E=E9=B9=8F?= Date: Fri, 15 Jul 2016 19:22:45 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BF=AE=E6=94=B9=E6=9C=AC=E5=9C=B0=E8=AE=BF?= =?UTF-8?q?=E9=97=AE=E7=9A=84=E6=A0=B7=E5=BC=8F=E5=BC=95=E7=94=A8=E9=97=AE?= =?UTF-8?q?=E9=A2=98=202.=E4=BF=AE=E5=A4=8D=E8=8F=9C=E5=8D=95=E4=B8=8D?= =?UTF-8?q?=E6=98=BE=E7=A4=BABUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- views/menu/index.php | 7 ++++--- views/permission/index.php | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/views/menu/index.php b/views/menu/index.php index 709983c..a647990 100644 --- a/views/menu/index.php +++ b/views/menu/index.php @@ -12,9 +12,10 @@ $this->title = Yii::t('rbac-admin', 'Menus'); $this->params['breadcrumbs'][] = $this->title; -$this->registerCssFile("/statics/assets/fuelux/css/tree-style.css"); -$this->registerJsFile("/statics/assets/fuelux/js/tree.min.js", ['depends'=>'backend\assets\AppAsset']); -$this->registerJsFile("/statics/js/tree.js", ['depends'=>'backend\assets\AppAsset']); +$this->registerCssFile("@web/statics/assets/fuelux/css/tree-style.css"); +$this->registerJsFile("@web/statics/assets/fuelux/js/tree.min.js", ['depends'=>'backend\assets\AppAsset']); + +$this->registerJs($this->render('@app/web/statics/js/tree.js', ['web' => Yii::getAlias('@web')])); $this->registerJs(" jQuery(document).ready(function() { diff --git a/views/permission/index.php b/views/permission/index.php index f452b21..b1ef783 100644 --- a/views/permission/index.php +++ b/views/permission/index.php @@ -10,7 +10,7 @@ $this->title = Yii::t('rbac-admin', 'Permissions'); $this->params['breadcrumbs'][] = $this->title; -$this->registerCssFile('/statics/assets/data-tables/DT_bootstrap.css', ['depends'=>'backend\assets\AppAsset']); +$this->registerCssFile('@web/statics/assets/data-tables/DT_bootstrap.css', ['depends'=>'backend\assets\AppAsset']); ?>