Files
u-ppt/vite.config.ts
绝尘 a5ebfd8b74 修复: 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
2026-07-12 22:55:06 +08:00

12 lines
396 B
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
export default defineConfig(({ mode }) => ({
plugins: [vue()],
// npm run devmode=web→ 浏览器模式,端口 8080
// npm run tauri:dev → 默认 mode端口 5173
server: mode === 'web'
? { host: '127.0.0.1', port: 8080, open: true }
: { host: '127.0.0.1', port: 5173, strictPort: true },
}))