Update About.vue.

pull/22/head
ruibaby 2019-06-13 00:51:34 +08:00
parent 3ceefa6114
commit e6af9ecca9
2 changed files with 20 additions and 27 deletions

View File

@ -1,12 +0,0 @@
import service from '@/utils/service'
const mainApi = {}
mainApi.version = () => {
return service({
url: 'version',
method: 'get'
})
}
export default mainApi

View File

@ -11,12 +11,12 @@
<a-popconfirm
slot="extra"
placement="left"
okText=""
cancelText=""
okText="确定"
cancelText="取消"
@confirm="confirmUpdate"
>
<template slot="title">
<p>更新 <b>Halo admin</b> </p>
<p>更新 <b>Halo admin</b> </p>
</template>
<a-icon
type="cloud-download"
@ -32,7 +32,8 @@
</a-popconfirm>
<ul>
<li>版本{{ environments.version }}</li>
<li>Server 版本{{ environments.version }}</li>
<li>Admin 版本{{ adminVersion }}</li>
<li>数据库{{ environments.database }}</li>
<li>运行模式{{ environments.mode }}</li>
<li>启动时间{{ environments.startTime | moment }}</li>
@ -58,12 +59,16 @@
<a-card
title="开发者"
:bordered="false"
>
<a
:href="item.github"
v-for="(item,index) in developers"
:key="index"
target="_blank"
>
<a-tooltip
placement="top"
v-for="(item,index) in developers"
:title="item.name"
:key="index"
>
<a-avatar
size="large"
@ -71,6 +76,7 @@
:style="{ marginRight: '10px' }"
/>
</a-tooltip>
</a>
</a-card>
<a-card
@ -93,11 +99,10 @@
<script>
import adminApi from '@/api/admin'
export default {
data() {
return {
version: this.VERSION,
adminVersion: this.VERSION,
environments: {},
developers: [
{