mirror of
https://github.com/whyour/qinglong.git
synced 2025-07-28 23:46:06 +08:00
修复脚本与地址栏显示不一致
This commit is contained in:
parent
04760c53db
commit
133481053e
|
@ -116,8 +116,8 @@ export GOBOT_QQ=""
|
||||||
## gotify_url 填写gotify地址,如https://push.example.de:8080
|
## gotify_url 填写gotify地址,如https://push.example.de:8080
|
||||||
## gotify_token 填写gotify的消息应用token
|
## gotify_token 填写gotify的消息应用token
|
||||||
## gotify_priority 填写推送消息优先级,默认为0
|
## gotify_priority 填写推送消息优先级,默认为0
|
||||||
export GOTIFY_URL="";
|
export GOTIFY_URL=""
|
||||||
export GOTIFY_TOKEN="";
|
export GOTIFY_TOKEN=""
|
||||||
export GOTIFY_PRIORITY=0;
|
export GOTIFY_PRIORITY=0
|
||||||
|
|
||||||
## 其他需要的变量,脚本中需要的变量使用 export 变量名= 声明即可
|
## 其他需要的变量,脚本中需要的变量使用 export 变量名= 声明即可
|
||||||
|
|
|
@ -112,17 +112,19 @@ const Script = ({ headerStyle, isPhone, theme, socketMessage }: any) => {
|
||||||
const initGetScript = () => {
|
const initGetScript = () => {
|
||||||
const { p, s } = history.location.query as any;
|
const { p, s } = history.location.query as any;
|
||||||
if (s) {
|
if (s) {
|
||||||
|
const vkey = `${p}/${s}`;
|
||||||
const obj = {
|
const obj = {
|
||||||
node: {
|
node: {
|
||||||
title: s,
|
title: s,
|
||||||
value: s,
|
value: s,
|
||||||
key: p ? `${p}/${s}` : s,
|
key: p ? vkey : s,
|
||||||
parent: p,
|
parent: p,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
setExpandedKeys([p]);
|
setExpandedKeys([p]);
|
||||||
onTreeSelect([`${p}/${s}`], obj);
|
onTreeSelect([vkey], obj);
|
||||||
}
|
}
|
||||||
|
history.push('/script');
|
||||||
};
|
};
|
||||||
|
|
||||||
const onSelect = (value: any, node: any) => {
|
const onSelect = (value: any, node: any) => {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user