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