diff --git a/backend/conf/config.yml b/backend/conf/config.yml index d5503878..9ff0fa31 100644 --- a/backend/conf/config.yml +++ b/backend/conf/config.yml @@ -32,4 +32,4 @@ task: workers: 4 other: tmppath: "/tmp" -version: v0.4.1 \ No newline at end of file +version: 0.4.1 \ No newline at end of file diff --git a/frontend/src/views/layout/components/Sidebar/index.vue b/frontend/src/views/layout/components/Sidebar/index.vue index 1367cadd..35b599b9 100644 --- a/frontend/src/views/layout/components/Sidebar/index.vue +++ b/frontend/src/views/layout/components/Sidebar/index.vue @@ -51,8 +51,12 @@ export default { }, data () { return { - version: '0.4.1' + version: '' } + }, + async created () { + const res = await this.$request.get('/version') + this.version = res.data.data } }