Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
liyaoting
/
jk-ut-plugin
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit 518b5589
authored
2023-05-15 14:25:46 +0800
by
fengweida
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
V1.0.8 修复sleep按钮逻辑
1 parent
fdcf9779
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
10 deletions
index.html
index.html
View file @
518b558
...
@@ -308,17 +308,14 @@
...
@@ -308,17 +308,14 @@
if
(
buildRow
.
startsWith
(
"//"
))
{
if
(
buildRow
.
startsWith
(
"//"
))
{
buildRow
=
buildRow
.
split
(
"//"
)[
1
];
buildRow
=
buildRow
.
split
(
"//"
)[
1
];
}
}
//如果需要sleep,才去掉sleep的注释
let
sleepRow
=
item
.
buildRowNo
+
1
;
if
(
needSleep
){
sleepList
.
forEach
(
item
=>
{
let
sleepRow
=
item
.
buildRowNo
+
1
;
if
(
item
.
rowNo
==
sleepRow
)
{
sleepList
.
forEach
(
item
=>
{
if
(
item
.
row
.
startsWith
(
"//"
))
{
if
(
item
.
rowNo
==
sleepRow
)
{
item
.
row
=
item
.
row
.
split
(
"//"
)[
1
];
if
(
item
.
row
.
startsWith
(
"//"
))
{
item
.
row
=
item
.
row
.
split
(
"//"
)[
1
];
}
}
}
}
);
}
}
}
);
}
else
{
}
else
{
//如果是关闭的 还没有注释的话,就注释掉
//如果是关闭的 还没有注释的话,就注释掉
if
(
!
uploadRow
.
startsWith
(
"//"
))
{
if
(
!
uploadRow
.
startsWith
(
"//"
))
{
...
@@ -340,6 +337,13 @@
...
@@ -340,6 +337,13 @@
sourceArr
[
item
.
uploadRowNo
]
=
"\t\t"
+
uploadRow
;
sourceArr
[
item
.
uploadRowNo
]
=
"\t\t"
+
uploadRow
;
sourceArr
[
item
.
buildRowNo
]
=
"\t\t"
+
buildRow
;
sourceArr
[
item
.
buildRowNo
]
=
"\t\t"
+
buildRow
;
});
});
if
(
!
needSleep
){
sleepList
.
forEach
(
item
=>
{
if
(
!
item
.
row
.
startsWith
(
"//"
))
{
item
.
row
=
"//"
+
item
.
row
;
}
});
}
sleepList
.
forEach
(
item
=>
{
sleepList
.
forEach
(
item
=>
{
item
.
row
=
"\t\t"
+
item
.
row
;
item
.
row
=
"\t\t"
+
item
.
row
;
sourceArr
[
item
.
rowNo
]
=
item
.
row
;
sourceArr
[
item
.
rowNo
]
=
item
.
row
;
...
@@ -363,6 +367,7 @@
...
@@ -363,6 +367,7 @@
alert
(
"复制成功"
);
alert
(
"复制成功"
);
}
}
},
},
switchSleep
:
function
()
{
switchSleep
:
function
()
{
this
.
needSleep
=
!
this
.
needSleep
;
this
.
needSleep
=
!
this
.
needSleep
;
},
},
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment