From e6af9ecca933a95e435b51cc3818ea462ff8db34 Mon Sep 17 00:00:00 2001 From: ruibaby Date: Thu, 13 Jun 2019 00:51:34 +0800 Subject: [PATCH] Update About.vue. --- src/api/main.js | 12 ------------ src/views/system/About.vue | 35 ++++++++++++++++++++--------------- 2 files changed, 20 insertions(+), 27 deletions(-) delete mode 100644 src/api/main.js diff --git a/src/api/main.js b/src/api/main.js deleted file mode 100644 index f4e536fe..00000000 --- a/src/api/main.js +++ /dev/null @@ -1,12 +0,0 @@ -import service from '@/utils/service' - -const mainApi = {} - -mainApi.version = () => { - return service({ - url: 'version', - method: 'get' - }) -} - -export default mainApi diff --git a/src/views/system/About.vue b/src/views/system/About.vue index fd32f976..4db7a84c 100644 --- a/src/views/system/About.vue +++ b/src/views/system/About.vue @@ -11,12 +11,12 @@
    -
  • 版本:{{ environments.version }}
  • +
  • Server 版本:{{ environments.version }}
  • +
  • Admin 版本:{{ adminVersion }}
  • 数据库:{{ environments.database }}
  • 运行模式:{{ environments.mode }}
  • 启动时间:{{ environments.startTime | moment }}
  • @@ -59,18 +60,23 @@ title="开发者" :bordered="false" > - - - + + + + import adminApi from '@/api/admin' - export default { data() { return { - version: this.VERSION, + adminVersion: this.VERSION, environments: {}, developers: [ {