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