fix: 桌面导出改用 IPC 直写(另存为对话框),设置页显示版本号
This commit is contained in:
@@ -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)
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user