From f4b1347110b41e99c0ba1bf30a9652beee780c2e Mon Sep 17 00:00:00 2001 From: JohnYan <84345999@qq.com> Date: Fri, 11 Dec 2020 11:39:32 +0800 Subject: [PATCH] fix #I290VN --- README.md | 2 +- static/index/index_d.js | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index cc0cef0..faf33d6 100644 --- a/README.md +++ b/README.md @@ -133,7 +133,7 @@ pip install smartchart TIME_ZONE = 'Asia/Shanghai' USE_I18N = True USE_L10N = True - USE_TZ = False + USE_TZ = False # 此处必须为False 4. 在你的url.py中加入引用 from django.conf.urls import include from django.views.generic import RedirectView diff --git a/static/index/index_d.js b/static/index/index_d.js index 0f6a73c..b060c7b 100644 --- a/static/index/index_d.js +++ b/static/index/index_d.js @@ -60,7 +60,7 @@ function refresh_index(){ favorlist.push(['iconfont ic-paid1',array[2],array[2],array[0],'smartchart.cn',array[3]]); } }); - if(favorlist.length===0){favorlist=[['iconfont ic-paid1','no_favorite','no_favorite',0,'smartchart.cn',-1]];} + if(favorlist.length===0){favorlist=[['iconfont ic-paid1','no_favorite','Contact',0,'smartchart.cn',-1]];} if(dev){ favorlist.push(['iconfont ic-paid1','/admin/echart/echartdashboardsetup_v2/add/?','新增Dashboard',2,'新增图形集装箱',-1]); favorlist.push(['iconfont ic-paid1','/admin/echart/echartdataset/?','浏览数据集',2,'浏览数据集',-1]); @@ -154,11 +154,7 @@ function generate_second_menu(array) { if(number === 1){ chart_name_url = '/echart/tableau?type=' + chart_name_url; } else {chart_name_url = '/echart?type=' + chart_name_url +dev} - if (chart_image==null) { - if(number === 1){ - chart_image = 'https://www.smartchart.cn/static/images/tableau_shot.png'; - }else{chart_image = 'https://www.smartchart.cn/static/images/echart_shot.png';} - } + chart_image = 'https://www.smartchart.cn/static/images/echart_shot.png'; let like_html = ' '; if (disreport.includes(chart_id)){ like_html = ' ';