Skip to content

Commit

Permalink
从 package.json 中读取版本号
Browse files Browse the repository at this point in the history
  • Loading branch information
u3u committed Sep 22, 2017
1 parent 5d4883b commit ca42048
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/renderer/views/SettingsPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<footer>
<p class="help">给个 Star 鼓励一下吧 (ฅ´ω`ฅ)</p>
<p><vLink href="https://github.com/MoeFE/GoogleTranslate">Google Translate</vLink></p>
<p class="help">1.0.0</p>
<p class="help">{{ version }}</p>
</footer>
</div>
</Layout>
Expand All @@ -43,11 +43,13 @@ import vLink from '@/components/Link'
import InputShortcutKeys from '@/components/InputShortcutKeys'
import { WindowHelper } from '../utils'
import { SAVE_STATE } from '../store/types'
import { version } from '../../../package.json'
export default {
name: 'settings-page',
components: { Layout, Radio, vSwitch, vLink, InputShortcutKeys },
data () {
return {
version,
view: {
height: 660,
animeOptions: { duration: 150, easing: 'easeOutQuart' },
Expand Down

0 comments on commit ca42048

Please sign in to comment.