mirror of https://github.com/halo-dev/halo-admin
Update About.vue.
parent
3ceefa6114
commit
e6af9ecca9
|
@ -1,12 +0,0 @@
|
||||||
import service from '@/utils/service'
|
|
||||||
|
|
||||||
const mainApi = {}
|
|
||||||
|
|
||||||
mainApi.version = () => {
|
|
||||||
return service({
|
|
||||||
url: 'version',
|
|
||||||
method: 'get'
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
export default mainApi
|
|
|
@ -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: [
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue