build(electron): 更新软件版本和环境变量处理
- 移除环境变量 VITE_APP_VERSION 的定义和使用 - 将软件版本从 1.0.9 修改为 1.0.0 - 调整方案列表背景色从 #ccc 改为 #ddd
This commit is contained in:
parent
902ba88c2f
commit
cd708e9eb9
|
@ -2,12 +2,8 @@ import { resolve } from 'path'
|
|||
import { defineConfig, externalizeDepsPlugin } from 'electron-vite'
|
||||
import vue from '@vitejs/plugin-vue'
|
||||
import VueDevTools from 'vite-plugin-vue-devtools';
|
||||
import pkg from './package.json'
|
||||
|
||||
export default defineConfig({
|
||||
define: {
|
||||
'import.meta.env.VITE_APP_VERSION': JSON.stringify(pkg.version)
|
||||
},
|
||||
main: {
|
||||
plugins: [externalizeDepsPlugin()]
|
||||
},
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "calibration-pc",
|
||||
"version": "1.0.9",
|
||||
"version": "1.0.0",
|
||||
"description": "谷云开发部开发的断路器标定软件",
|
||||
"main": "./out/main/index.js",
|
||||
"author": "example.com",
|
||||
|
|
|
@ -273,9 +273,6 @@ const devices = ref([]);
|
|||
const isScroll = ref(true);
|
||||
const logs = ref([]);
|
||||
const version = ref('V1.0.0');
|
||||
// 直接使用环境变量
|
||||
// const versionTxt = import.meta.env.VITE_APP_VERSION || 'dev';
|
||||
// version.value = versionTxt;
|
||||
|
||||
const loading = ref(true);
|
||||
const isOpenLog = ref(false);
|
||||
|
@ -707,7 +704,7 @@ const deleteCalibrationStep = index => {
|
|||
flex-shrink: 0;
|
||||
}
|
||||
.scheme-list {
|
||||
background: #ccc;
|
||||
background: #ddd;
|
||||
padding: 10px;
|
||||
font-size: 13px;
|
||||
display: flex;
|
||||
|
|
Loading…
Reference in New Issue