修复: PropsPanel.vue 残缺 defineEmits 导致 Vue SFC 编译失败
- 删除 'const emit = defineEmits' 错误行(无泛型参数且未调用) - PropsPanel 不 emit 事件,直接调 store.xxx - 修复变量名 CHART_TYPES 拼写 - 简化 vite.config.ts 用 mode 参数区分 Web/桌面模式 - npm run dev → mode=web,端口8080; tauri:dev → mode=default,端口5173
This commit is contained in:
@@ -21,7 +21,6 @@ const CHART_TYPES: Array<{ k: ChartType; label: string; icon: string }> = [
|
||||
{ k: 'progress', label: '进度图', icon: '⭕' }
|
||||
]
|
||||
|
||||
const emit = defineEmits
|
||||
const selected = computed(() => store.getSelected())
|
||||
const slide = computed(() => store.currentSlide.value)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user