mirror of https://github.com/openspug/spug
parent
325a9a237c
commit
d957cabe0b
|
@ -17,7 +17,9 @@ class Command(BaseCommand):
|
||||||
if not version:
|
if not version:
|
||||||
return self.stderr.write(self.style.ERROR('获取新版本失败,排除网络问题后请附带输出内容至官方论坛反馈'))
|
return self.stderr.write(self.style.ERROR('获取新版本失败,排除网络问题后请附带输出内容至官方论坛反馈'))
|
||||||
if version == settings.SPUG_VERSION:
|
if version == settings.SPUG_VERSION:
|
||||||
return self.stdout.write(self.style.SUCCESS('当前已是最新版本'))
|
self.stdout.write(self.style.SUCCESS(''))
|
||||||
|
answer = input(f'当前已是最新版本,是否要进行修复性更新[y|n]?')
|
||||||
|
else:
|
||||||
self.stdout.write(f'{version} 更新日志:\r\n' + res.get('body', ''))
|
self.stdout.write(f'{version} 更新日志:\r\n' + res.get('body', ''))
|
||||||
answer = input(f'发现新版本 {version} 是否更新[y|n]?')
|
answer = input(f'发现新版本 {version} 是否更新[y|n]?')
|
||||||
if answer.lower() != 'y':
|
if answer.lower() != 'y':
|
||||||
|
|
|
@ -4,8 +4,8 @@
|
||||||
* Released under the AGPL-3.0 License.
|
* Released under the AGPL-3.0 License.
|
||||||
*/
|
*/
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { Link } from 'react-router-dom';
|
import { Link as ALink } from 'react-router-dom';
|
||||||
import { Divider, Button } from 'antd';
|
import { Divider, Button as AButton } from 'antd';
|
||||||
import { hasPermission } from 'libs';
|
import { hasPermission } from 'libs';
|
||||||
|
|
||||||
function canVisible(auth) {
|
function canVisible(auth) {
|
||||||
|
@ -14,11 +14,11 @@ function canVisible(auth) {
|
||||||
|
|
||||||
class Action extends React.Component {
|
class Action extends React.Component {
|
||||||
static Link(props) {
|
static Link(props) {
|
||||||
return <Link {...props}/>
|
return <ALink {...props}/>
|
||||||
}
|
}
|
||||||
|
|
||||||
static Button(props) {
|
static Button(props) {
|
||||||
return <Button type="link" {...props} style={{padding: 0}}/>
|
return <AButton type="link" {...props} style={{padding: 0}}/>
|
||||||
}
|
}
|
||||||
|
|
||||||
_handle = (data, el) => {
|
_handle = (data, el) => {
|
||||||
|
|
Loading…
Reference in New Issue