fix: 桌面导出改用 IPC 直写(另存为对话框),设置页显示版本号

This commit is contained in:
root
2026-10-16 13:07:38 +08:00
parent 599aa09ab8
commit f0d30e2c29
11 changed files with 66 additions and 33 deletions
+7 -1
View File
@@ -1,7 +1,13 @@
import { readFileSync } from 'node:fs'
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
const pkg = JSON.parse(readFileSync(new URL('./package.json', import.meta.url), 'utf-8'))
export default defineConfig({
plugins: [vue()],
base: './'
base: './',
define: {
__APP_VERSION__: JSON.stringify(pkg.version)
}
})