feat(index): 添加页面加载超时提示,修改默认主题设置为跟随系统

fix(service-worker): 优化清理运行时缓存逻辑
This commit is contained in:
PKC278
2026-01-02 21:22:27 +08:00
parent 425bf808ed
commit 78e2d05730
6 changed files with 96 additions and 19 deletions

View File

@@ -45,7 +45,7 @@ const templateTypes = ref([
// 编辑器主题
const { name: themeName, global: globalTheme } = useTheme()
const savedTheme = ref(localStorage.getItem('theme') ?? themeName)
const savedTheme = ref(localStorage.getItem('theme') ?? 'auto')
const currentThemeName = ref(savedTheme.value)
const editorTheme = computed(() => (currentThemeName.value === 'light' ? 'github' : 'monokai'))