mirror of
https://github.com/VueTorrent/VueTorrent.git
synced 2025-04-01 22:34:49 +03:00
Merge pull request #212 from jef/chore/use-process-version
chore: use process.env for version
This commit is contained in:
commit
b48dff64db
1 changed files with 1 additions and 2 deletions
|
@ -16,7 +16,6 @@
|
||||||
<script>
|
<script>
|
||||||
import { mapState, mapGetters } from 'vuex'
|
import { mapState, mapGetters } from 'vuex'
|
||||||
import Navbar from '@/components/Navbar/Navbar.vue'
|
import Navbar from '@/components/Navbar/Navbar.vue'
|
||||||
import { version } from '../package.json'
|
|
||||||
import qbit from '@/services/qbit'
|
import qbit from '@/services/qbit'
|
||||||
import { General } from '@/mixins'
|
import { General } from '@/mixins'
|
||||||
|
|
||||||
|
@ -35,7 +34,7 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.$store.commit('SET_APP_VERSION', version)
|
this.$store.commit('SET_APP_VERSION', process.env['npm_package_version'])
|
||||||
this.checkDeviceDarkTheme()
|
this.checkDeviceDarkTheme()
|
||||||
this.checkAuthenticated()
|
this.checkAuthenticated()
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Reference in a new issue