mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-23 23:06:06 +08:00
修复根组件刷新异常
This commit is contained in:
parent
a90e536403
commit
456b4c4136
|
@ -100,7 +100,7 @@
|
||||||
"@umijs/plugin-esbuild": "^1.4.1",
|
"@umijs/plugin-esbuild": "^1.4.1",
|
||||||
"@umijs/test": "^3.5.21",
|
"@umijs/test": "^3.5.21",
|
||||||
"ansi-to-react": "^6.1.6",
|
"ansi-to-react": "^6.1.6",
|
||||||
"antd": "^4.18.9",
|
"antd": "^4.20.5",
|
||||||
"antd-img-crop": "^4.2.3",
|
"antd-img-crop": "^4.2.3",
|
||||||
"codemirror": "^5.65.2",
|
"codemirror": "^5.65.2",
|
||||||
"compression-webpack-plugin": "9.2.0",
|
"compression-webpack-plugin": "9.2.0",
|
||||||
|
|
|
@ -101,7 +101,7 @@ export default function (props: any) {
|
||||||
};
|
};
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (systemInfo && systemInfo.isInitialized) {
|
if (systemInfo && systemInfo.isInitialized && !user) {
|
||||||
getUser();
|
getUser();
|
||||||
}
|
}
|
||||||
}, [props.location.pathname]);
|
}, [props.location.pathname]);
|
||||||
|
|
|
@ -75,7 +75,6 @@ const CronModal = ({
|
||||||
<Form.Item
|
<Form.Item
|
||||||
name="command"
|
name="command"
|
||||||
label="命令"
|
label="命令"
|
||||||
normalize={(value) => value.trim()}
|
|
||||||
rules={[{ required: true, whitespace: true }]}
|
rules={[{ required: true, whitespace: true }]}
|
||||||
>
|
>
|
||||||
<Input.TextArea
|
<Input.TextArea
|
||||||
|
@ -87,7 +86,6 @@ const CronModal = ({
|
||||||
<Form.Item
|
<Form.Item
|
||||||
name="schedule"
|
name="schedule"
|
||||||
label="定时规则"
|
label="定时规则"
|
||||||
normalize={(value) => value.trim()}
|
|
||||||
rules={[
|
rules={[
|
||||||
{ required: true },
|
{ required: true },
|
||||||
{
|
{
|
||||||
|
|
2
src/pages/env/modal.tsx
vendored
2
src/pages/env/modal.tsx
vendored
|
@ -79,7 +79,6 @@ const EnvModal = ({
|
||||||
<Form.Item
|
<Form.Item
|
||||||
name="name"
|
name="name"
|
||||||
label="名称"
|
label="名称"
|
||||||
normalize={(value) => value.trim()}
|
|
||||||
rules={[
|
rules={[
|
||||||
{ required: true, message: '请输入环境变量名称', whitespace: true },
|
{ required: true, message: '请输入环境变量名称', whitespace: true },
|
||||||
{
|
{
|
||||||
|
@ -106,7 +105,6 @@ const EnvModal = ({
|
||||||
<Form.Item
|
<Form.Item
|
||||||
name="value"
|
name="value"
|
||||||
label="值"
|
label="值"
|
||||||
normalize={(value) => value.trim()}
|
|
||||||
rules={[
|
rules={[
|
||||||
{ required: true, message: '请输入环境变量值', whitespace: true },
|
{ required: true, message: '请输入环境变量值', whitespace: true },
|
||||||
]}
|
]}
|
||||||
|
|
|
@ -231,7 +231,6 @@ const SubscriptionModal = ({
|
||||||
<Form.Item
|
<Form.Item
|
||||||
name="url"
|
name="url"
|
||||||
label="链接"
|
label="链接"
|
||||||
normalize={(value) => value.trim()}
|
|
||||||
rules={[
|
rules={[
|
||||||
{ required: true },
|
{ required: true },
|
||||||
{ pattern: type === 'file' ? fileUrlRegx : repoUrlRegx },
|
{ pattern: type === 'file' ? fileUrlRegx : repoUrlRegx },
|
||||||
|
@ -246,11 +245,7 @@ const SubscriptionModal = ({
|
||||||
/>
|
/>
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
{type !== 'file' && (
|
{type !== 'file' && (
|
||||||
<Form.Item
|
<Form.Item name="branch" label="分支">
|
||||||
name="branch"
|
|
||||||
label="分支"
|
|
||||||
normalize={(value) => value.trim()}
|
|
||||||
>
|
|
||||||
<Input
|
<Input
|
||||||
placeholder="请输入分支"
|
placeholder="请输入分支"
|
||||||
onPaste={onBranchChange}
|
onPaste={onBranchChange}
|
||||||
|
@ -324,7 +319,6 @@ const SubscriptionModal = ({
|
||||||
<Form.Item
|
<Form.Item
|
||||||
name="whitelist"
|
name="whitelist"
|
||||||
label="白名单"
|
label="白名单"
|
||||||
normalize={(value) => value.trim()}
|
|
||||||
tooltip="多个关键词竖线分割,支持正则表达式"
|
tooltip="多个关键词竖线分割,支持正则表达式"
|
||||||
>
|
>
|
||||||
<Input.TextArea
|
<Input.TextArea
|
||||||
|
@ -336,7 +330,6 @@ const SubscriptionModal = ({
|
||||||
<Form.Item
|
<Form.Item
|
||||||
name="blacklist"
|
name="blacklist"
|
||||||
label="黑名单"
|
label="黑名单"
|
||||||
normalize={(value) => value.trim()}
|
|
||||||
tooltip="多个关键词竖线分割,支持正则表达式"
|
tooltip="多个关键词竖线分割,支持正则表达式"
|
||||||
>
|
>
|
||||||
<Input.TextArea
|
<Input.TextArea
|
||||||
|
@ -348,7 +341,6 @@ const SubscriptionModal = ({
|
||||||
<Form.Item
|
<Form.Item
|
||||||
name="dependences"
|
name="dependences"
|
||||||
label="依赖文件"
|
label="依赖文件"
|
||||||
normalize={(value) => value.trim()}
|
|
||||||
tooltip="多个关键词竖线分割,支持正则表达式"
|
tooltip="多个关键词竖线分割,支持正则表达式"
|
||||||
>
|
>
|
||||||
<Input.TextArea
|
<Input.TextArea
|
||||||
|
@ -360,7 +352,6 @@ const SubscriptionModal = ({
|
||||||
<Form.Item
|
<Form.Item
|
||||||
name="extensions"
|
name="extensions"
|
||||||
label="文件后缀"
|
label="文件后缀"
|
||||||
normalize={(value) => value.trim()}
|
|
||||||
tooltip="仓库需要拉取的文件后缀,多个后缀空格分隔"
|
tooltip="仓库需要拉取的文件后缀,多个后缀空格分隔"
|
||||||
>
|
>
|
||||||
<Input placeholder="请输入文件后缀" />
|
<Input placeholder="请输入文件后缀" />
|
||||||
|
@ -368,7 +359,6 @@ const SubscriptionModal = ({
|
||||||
<Form.Item
|
<Form.Item
|
||||||
name="sub_before"
|
name="sub_before"
|
||||||
label="执行前"
|
label="执行前"
|
||||||
normalize={(value) => value.trim()}
|
|
||||||
tooltip="运行订阅前执行的命令,比如 cp/mv/python3 xxx.py/node xxx.js"
|
tooltip="运行订阅前执行的命令,比如 cp/mv/python3 xxx.py/node xxx.js"
|
||||||
>
|
>
|
||||||
<Input.TextArea
|
<Input.TextArea
|
||||||
|
@ -380,7 +370,6 @@ const SubscriptionModal = ({
|
||||||
<Form.Item
|
<Form.Item
|
||||||
name="sub_after"
|
name="sub_after"
|
||||||
label="执行后"
|
label="执行后"
|
||||||
normalize={(value) => value.trim()}
|
|
||||||
tooltip="运行订阅后执行的命令,比如 cp/mv/python3 xxx.py/node xxx.js"
|
tooltip="运行订阅后执行的命令,比如 cp/mv/python3 xxx.py/node xxx.js"
|
||||||
>
|
>
|
||||||
<Input.TextArea
|
<Input.TextArea
|
||||||
|
|
Loading…
Reference in New Issue
Block a user