Skip to content

Commit

Permalink
A 添加关于页面web版本号显示
Browse files Browse the repository at this point in the history
  • Loading branch information
vapao committed May 18, 2020
1 parent a33cf03 commit c6ca897
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion spug_api/spug/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
re.compile('/apis/.*'),
)

SPUG_VERSION = 'v2.2.5'
SPUG_VERSION = 'v2.2.6'

# override default config
try:
Expand Down
1 change: 1 addition & 0 deletions spug_web/src/libs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ import _http from './http';
export * from './functools';
export * from './router';
export const http = _http;
export const VERSION = 'v2.2.6';
5 changes: 3 additions & 2 deletions spug_web/src/pages/system/setting/About.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import React from 'react';
import styles from './index.module.css';
import { Descriptions, Spin } from "antd";
import { observer } from 'mobx-react'
import { http } from 'libs';
import { http, VERSION } from 'libs';


@observer
Expand Down Expand Up @@ -36,7 +36,8 @@ class About extends React.Component {
<Descriptions.Item label="操作系统">{info['system_version']}</Descriptions.Item>
<Descriptions.Item label="Python版本">{info['python_version']}</Descriptions.Item>
<Descriptions.Item label="Django版本">{info['django_version']}</Descriptions.Item>
<Descriptions.Item label="Spug版本">{info['spug_version']}</Descriptions.Item>
<Descriptions.Item label="Spug API版本">{info['spug_version']}</Descriptions.Item>
<Descriptions.Item label="Spug Web版本">{VERSION}</Descriptions.Item>
<Descriptions.Item label="官网文档">
<a href="https://spug.dev" target="_blank" rel="noopener noreferrer">https://spug.dev</a>
</Descriptions.Item>
Expand Down

0 comments on commit c6ca897

Please sign in to comment.