File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -125,15 +125,15 @@ const searchState = reactive({
125125});
126126
127127const timer = ref (null );
128- const getData = async () => {
128+ const getData = async (forceRefresh = false ) => {
129129 try {
130130 // 首先尝试从配置服务获取站点数据
131131 const configStatus = siteService .getConfigStatus ();
132132
133133 if (configStatus .hasConfigUrl ) {
134134 try {
135135 // 如果有配置地址,从配置地址加载站点数据
136- await siteService .loadSitesFromConfig ();
136+ await siteService .loadSitesFromConfig (forceRefresh );
137137 console .log (" 从配置地址加载站点数据成功" );
138138 } catch (configError) {
139139 console .error (" 从配置地址加载站点数据失败:" , configError);
@@ -224,7 +224,7 @@ const handleConfirmClear = () => {
224224 form .now_site = form .new_site ;
225225 setCurrentSite (form .now_site );
226226 form .visible = false ;
227- getData ();
227+ getData (true ); // 传递 forceRefresh=true 强制刷新配置数据
228228 checkNowSite ();
229229};
230230
You can’t perform that action at this time.
0 commit comments