diff --git a/admin/dashboard/templates/base.html b/admin/dashboard/templates/base.html index 459a098..eff0f98 100644 --- a/admin/dashboard/templates/base.html +++ b/admin/dashboard/templates/base.html @@ -148,8 +148,8 @@
- - + + @@ -181,9 +181,17 @@ return { currentView: '1', timeRange: '7', - charts: {} + charts: {}, + // 添加一个标志,用于控制时间范围选择器的显示 + showTimeRangeSelector: false } }, + created() { + // 根据当前页面路径决定是否显示时间范围选择器 + const path = window.location.pathname; + // 只在统计相关页面显示时间范围选择器 + this.showTimeRangeSelector = ['/', '/plugins', '/users', '/groups','/robot_management','/errors'].includes(path); + }, methods: { handleSelect(key, keyPath) { this.currentView = key; diff --git a/admin/dashboard/templates/message_list.html b/admin/dashboard/templates/message_list.html index 82bcbfe..aab376f 100644 --- a/admin/dashboard/templates/message_list.html +++ b/admin/dashboard/templates/message_list.html @@ -5,8 +5,6 @@ {% block content %}
-

消息列表

- diff --git a/admin/dashboard/templates/wx_logs.html b/admin/dashboard/templates/wx_logs.html index fc8aa35..0c0f718 100644 --- a/admin/dashboard/templates/wx_logs.html +++ b/admin/dashboard/templates/wx_logs.html @@ -4,8 +4,6 @@ {% block content %}
-

微信日志查看

-
日志查看