mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
app version step 1
This commit is contained in:
parent
7b42a2e278
commit
9bffdd7334
@ -1,4 +1,5 @@
|
||||
LOGIN_API_URL=http://localhost/login_api/
|
||||
COMMUNITY_API_STATE_BALANCE_URL=http://localhost/state-balances/
|
||||
COMMUNITY_API_TRANSACTION_CREATION_URL=http://localhost/transaction-creations/
|
||||
VUE_PATH=/vue
|
||||
VUE_PATH=/vue
|
||||
VUE_APP_VERSION=0
|
||||
@ -26,8 +26,13 @@ export const store = new Vuex.Store({
|
||||
'Access-Control-Allow-Credentials': 'true',
|
||||
},
|
||||
},
|
||||
packageVersion: process.env.VUE_APP_VERSION|| '0',
|
||||
},
|
||||
getters: {
|
||||
appVersion: (state) => {
|
||||
return state.packageVersion
|
||||
}
|
||||
},
|
||||
getters: {},
|
||||
// Syncronous mutation of the state
|
||||
mutations: {
|
||||
language: (state, language) => {
|
||||
|
||||
@ -25,6 +25,7 @@
|
||||
</b-nav-item> -->
|
||||
</b-nav>
|
||||
</b-col>
|
||||
My Awesome App version {{ $store.getters.appVersion }}
|
||||
</b-row>
|
||||
</footer>
|
||||
</template>
|
||||
|
||||
@ -1,5 +1,7 @@
|
||||
const path = require('path')
|
||||
const dotenv = require('dotenv-webpack')
|
||||
process.env.VUE_APP_VERSION = require('./package.json').version
|
||||
|
||||
|
||||
function resolveSrc(_path) {
|
||||
return path.join(__dirname, _path)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user