diff --git a/CHANGELOG.md b/CHANGELOG.md index bf23f44..3f64cb0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.9.1] - 2026-02-07 + +### Fixed +- 🔧 修复: GanttChart管理ThemeChange的问题 +- 🔧 Fixed: Issue with ThemeChange management in GanttChart + ## [1.9.0] - 2026-02-07 ### Added diff --git a/package.json b/package.json index e95c571..153fcda 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "jordium-gantt-vue3", - "version": "1.9.0", + "version": "1.9.1", "type": "module", "main": "npm-package/dist/jordium-gantt-vue3.cjs.js", "module": "npm-package/dist/jordium-gantt-vue3.es.js", diff --git a/src/components/GanttToolbar.vue b/src/components/GanttToolbar.vue index 2dbb07d..2e38d2e 100644 --- a/src/components/GanttToolbar.vue +++ b/src/components/GanttToolbar.vue @@ -340,9 +340,8 @@ const handleThemeToggle = () => { // 立即触发主题变化事件 if (props.onThemeChange && typeof props.onThemeChange === 'function') { props.onThemeChange(newTheme) - } else { - emit('theme-change', newTheme) } + emit('theme-change', newTheme) // 显示确认对话框询问是否保存设置 pendingValue.value = newTheme diff --git a/vite.config.ts b/vite.config.ts index 60055ae..249db07 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -5,7 +5,7 @@ import vue from '@vitejs/plugin-vue' export default defineConfig(({ command }) => ({ plugins: [vue()], // GitHub Pages 部署时的 base 路径 - base: command === 'build' ? '/jordium-gantt-vue3/' : '/', + base: command === 'build' ? './' : '/', // 开发服务器配置 root: 'demo', // 构建配置