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