Skip to content

Commit 4fa68d2

Browse files
committed
fix:版本号显示问题
1 parent 1df6309 commit 4fa68d2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/src/renderer/pages/Main.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@
100100
import * as cloudStorage from '../util/cloudStorage'
101101
import * as types from '../vuex/mutation-types'
102102
import storage from 'electron-json-storage'
103+
import pkg from'../../../package.json'
103104
104105
import RightContent from '../components/Main/RightContent.vue'
105106
@@ -113,7 +114,7 @@
113114
search: '',
114115
bucketname: '',
115116
menuState: true,
116-
appVersion: `${process.env.npm_package_version}`
117+
appVersion: pkg.version
117118
}
118119
},
119120
computed: {

0 commit comments

Comments
 (0)