mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-24 07:16:08 +08:00
增加版本号展示
This commit is contained in:
parent
6549eeaf10
commit
a4b2d84443
|
@ -205,6 +205,7 @@ update_raw() {
|
||||||
)
|
)
|
||||||
cron_name=$(grep "new Env" $raw_file_name | awk -F "\(" '{print $2}' | awk -F "\)" '{print $1}' | sed 's:^.\(.*\).$:\1:' | head -1)
|
cron_name=$(grep "new Env" $raw_file_name | awk -F "\(" '{print $2}' | awk -F "\)" '{print $1}' | sed 's:^.\(.*\).$:\1:' | head -1)
|
||||||
[[ -z $cron_name ]] && cron_name="$raw_file_name"
|
[[ -z $cron_name ]] && cron_name="$raw_file_name"
|
||||||
|
[[ -z $cron_line ]] && cron_line=$(grep "cron:" $raw_file_name | awk -F ":" '{print $2}' | xargs)
|
||||||
[[ -z $cron_line ]] && cron_line="0 6 * * *"
|
[[ -z $cron_line ]] && cron_line="0 6 * * *"
|
||||||
if [[ -z $cron_id ]]; then
|
if [[ -z $cron_id ]]; then
|
||||||
result=$(add_cron_api "$cron_line:$cmd_task $filename:$cron_name")
|
result=$(add_cron_api "$cron_line:$cmd_task $filename:$cron_name")
|
||||||
|
|
|
@ -14,6 +14,7 @@ import 'codemirror/mode/shell/shell.js';
|
||||||
import { request } from '@/utils/http';
|
import { request } from '@/utils/http';
|
||||||
import './index.less';
|
import './index.less';
|
||||||
import vhCheck from 'vh-check';
|
import vhCheck from 'vh-check';
|
||||||
|
import { version, changeLog } from '../version';
|
||||||
|
|
||||||
export default function (props: any) {
|
export default function (props: any) {
|
||||||
const logout = () => {
|
const logout = () => {
|
||||||
|
@ -63,7 +64,16 @@ export default function (props: any) {
|
||||||
return (
|
return (
|
||||||
<ProLayout
|
<ProLayout
|
||||||
selectedKeys={[props.location.pathname]}
|
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) => {
|
menuItemRender={(menuItemProps: any, defaultDom: any) => {
|
||||||
if (
|
if (
|
||||||
menuItemProps.isUrl ||
|
menuItemProps.isUrl ||
|
||||||
|
|
2
src/version.ts
Normal file
2
src/version.ts
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
export const version = 'v2.0.0-111';
|
||||||
|
export const changeLog = 'https://t.me/jiaolongwang/101';
|
Loading…
Reference in New Issue
Block a user