Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
micro-customization-system
/
e-shield-h5
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit cf7a06b9
authored
Aug 16, 2022
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
设备调频 闹钟模式 相同时间提示bug修改
1 parent
94bcf3a4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
src/views/freq.vue
src/views/index.vue
src/views/freq.vue
View file @
cf7a06b
...
...
@@ -342,10 +342,10 @@ export default defineComponent({
return
Toast
(
"请至少选择一组模式"
);
}
// eslint-disable-next-line no-case-declarations
let
timeArr
=
clockList
.
value
.
map
((
item
)
=>
item
.
time
);
//
let timeArr = clockList.value.map((item) => item.time);
// eslint-disable-next-line no-case-declarations
let
timeArrSet
=
new
Set
(
timeArr
);
if
(
timeArr
.
length
!=
timeArrSet
.
size
)
{
let
timeArrSet
=
new
Set
(
arr
[
1
]
);
if
(
arr
[
1
]
.
length
!=
timeArrSet
.
size
)
{
return
Toast
(
"每组模式时间不可相同"
);
}
OParams
.
timer
=
arr
[
0
].
join
(
","
);
...
...
@@ -407,11 +407,11 @@ export default defineComponent({
</
style
>
<
style
lang=
"scss"
scoped
>
.freq-page
{
position
:
fixed
;
box-sizing
:
border-box
;
width
:
100%
;
padding
:
16px
10px
;
height
:
100%
;
overflow
:
auto
;
background
:
#f5f6f7
;
color
:
#111
;
.top
{
...
...
src/views/index.vue
View file @
cf7a06b
...
...
@@ -206,7 +206,6 @@ export default defineComponent({
}
};
watch
(
mapIsUploaded
,
(
newVal
)
=>
{
localStorage
.
removeItem
(
"token"
);
localStorage
.
removeItem
(
"sharePage"
);
if
(
route
.
query
.
token
)
{
localStorage
.
setItem
(
"token"
,
route
.
query
.
token
);
...
...
Write
Preview
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