File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -284,8 +284,9 @@ export default {
284284 mounted () {
285285 this .getServers ();
286286 this .refreshInterval = setInterval (() => {
287+ // 轮询时间延长到30秒,减少服务器压力,同时保持数据相对新鲜
287288 this .getServers ();
288- }, 5000 );
289+ }, 30000 );
289290 },
290291 unmounted () {
291292 if (this .refreshInterval ) {
Original file line number Diff line number Diff line change @@ -162,7 +162,7 @@ const {
162162 <InstalledPluginsTab :state =" pageState" />
163163
164164 <!-- 指令面板标签页内容 -->
165- <v-tab-item v-show =" activeTab === 'components'" >
165+ <v-tab-item v-if =" activeTab === 'components'" >
166166 <div class =" mb-4 pt-4 pb-4" >
167167 <div class =" d-flex align-center flex-wrap" style =" gap : 12px " >
168168 <h2 class =" text-h2 mb-0" >{{ tm("tabs.handlersOperation") }}</h2 >
@@ -180,7 +180,7 @@ const {
180180 </v-tab-item >
181181
182182 <!-- 已安装的 MCP 服务器标签页内容 -->
183- <v-tab-item v-show =" activeTab === 'mcp'" >
183+ <v-tab-item v-if =" activeTab === 'mcp'" >
184184 <div class =" mb-4 pt-4 pb-4" >
185185 <div class =" d-flex align-center flex-wrap" style =" gap : 12px " >
186186 <h2 class =" text-h2 mb-0" >{{ tm("tabs.installedMcpServers") }}</h2 >
@@ -198,7 +198,7 @@ const {
198198 </v-tab-item >
199199
200200 <!-- Skills 标签页内容 -->
201- <v-tab-item v-show =" activeTab === 'skills'" >
201+ <v-tab-item v-if =" activeTab === 'skills'" >
202202 <div class =" mb-4 pt-4 pb-4" >
203203 <div class =" d-flex align-center flex-wrap" style =" gap : 12px " >
204204 <h2 class =" text-h2 mb-0" >{{ tm("tabs.skills") }}</h2 >
You can’t perform that action at this time.
0 commit comments