mirror of
https://github.com/whyour/qinglong.git
synced 2026-07-16 17:09:20 +08:00
增加版本号展示
This commit is contained in:
+11
-1
@@ -14,6 +14,7 @@ import 'codemirror/mode/shell/shell.js';
|
||||
import { request } from '@/utils/http';
|
||||
import './index.less';
|
||||
import vhCheck from 'vh-check';
|
||||
import { version, changeLog } from '../version';
|
||||
|
||||
export default function (props: any) {
|
||||
const logout = () => {
|
||||
@@ -63,7 +64,16 @@ export default function (props: any) {
|
||||
return (
|
||||
<ProLayout
|
||||
selectedKeys={[props.location.pathname]}
|
||||
title="控制面板"
|
||||
title={
|
||||
<>
|
||||
控制面板
|
||||
<a href={changeLog} target="_blank" rel="noopener noreferrer">
|
||||
<span style={{ fontSize: 9, color: '#666', marginLeft: 5 }}>
|
||||
{version}
|
||||
</span>
|
||||
</a>
|
||||
</>
|
||||
}
|
||||
menuItemRender={(menuItemProps: any, defaultDom: any) => {
|
||||
if (
|
||||
menuItemProps.isUrl ||
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
export const version = 'v2.0.0-111';
|
||||
export const changeLog = 'https://t.me/jiaolongwang/101';
|
||||
Reference in New Issue
Block a user