From f7a532137a3d98e2c0d6fde376387325455f5444 Mon Sep 17 00:00:00 2001
From: log
Date: Tue, 23 Jun 2026 21:10:10 +0800
Subject: [PATCH] fix: prevent browser caching of config and models APIs

---
 video-claw/video-claw/frontend/components/HomePage.tsx |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/video-claw/video-claw/frontend/components/HomePage.tsx b/video-claw/video-claw/frontend/components/HomePage.tsx
index 1cadbaf..577e452 100644
--- a/video-claw/video-claw/frontend/components/HomePage.tsx
+++ b/video-claw/video-claw/frontend/components/HomePage.tsx
@@ -1,4 +1,4 @@
-'use client';
+'use client';
 
 import React, { useState, useRef, useEffect } from 'react';
 import { Sparkles, Play, Settings2, Clock, ArrowRight, Zap, CheckCircle, Trash2, X, Lock, Globe, ListOrdered, Upload, Loader2 } from 'lucide-react';
@@ -145,7 +145,7 @@
       setConfigLoading(true);
       setConfigError('');
       try {
-        const resp = await fetch('/api/config');
+        const resp = await fetch('/api/config', { cache: 'no-store' });
         if (!resp.ok) throw new Error('读取默认模型配置失败');
         const data = await resp.json();
         const models = data.config?.models || {};

--
Gitblit v1.8.0