/** * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug * Copyright (c) * Released under the MIT License. */ import React from 'react'; import styles from './index.module.css'; import { Descriptions, Spin } from "antd"; import { observer } from 'mobx-react' import { http, VERSION } from 'libs'; @observer class About extends React.Component { constructor(props) { super(props); this.state = { fetching: true, info: {} } } componentDidMount() { http.get('/api/setting/about/') .then(res => this.setState({info: res})) .finally(() => this.setState({fetching: false})) } render() { const {info, fetching} = this.state; return (
关于
{info['system_version']} {info['python_version']} {info['django_version']} {info['spug_version']} {VERSION} https://spug.dev
) } } export default About