No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
1 deletions
-
src/store/modules/system.js
|
|
@ -93,7 +93,11 @@ const actions = { |
|
|
|
async getVersion({ commit }) { |
|
|
|
const data = await API.get(`${process.env.VUE_APP_MANAGER_API_URL}/v1/system/info`); |
|
|
|
if (data && data.version) { |
|
|
|
commit("setVersion", data.version); |
|
|
|
let {version} = data; |
|
|
|
if (data.build) { |
|
|
|
version += `-build-${data.build}`; |
|
|
|
} |
|
|
|
commit("setVersion", version); |
|
|
|
} |
|
|
|
}, |
|
|
|
async getUnit({ commit }) { |
|
|
|