From 7e56ea003bf372eedbc64a2989f92678db329870 Mon Sep 17 00:00:00 2001 From: xiaoz Date: Tue, 22 Dec 2020 22:04:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=BB=98=E8=AE=A4=E4=B8=BB?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controller/index.php | 7 +++++++ templates/default/index.php | 2 ++ 2 files changed, 9 insertions(+) diff --git a/controller/index.php b/controller/index.php index d358c65..33b6ec9 100644 --- a/controller/index.php +++ b/controller/index.php @@ -104,6 +104,13 @@ function base64($url){ //获取版本号 $version = get_version(); +//载入js扩展 +if( file_exists('templates/admin/static/extend.js') ) { + $onenav['extend'] = ''; +} +else{ + $onenav['extend'] = ''; +} // 载入前台首页模板 require('templates/'.TEMPLATE.'/index.php'); ?> \ No newline at end of file diff --git a/templates/default/index.php b/templates/default/index.php index cc24350..b44faae 100644 --- a/templates/default/index.php +++ b/templates/default/index.php @@ -12,6 +12,8 @@ + +