Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
live-management-web
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
haojie
live-management-web
Commits
89216715
Commit
89216715
authored
Aug 18, 2023
by
haojie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
减去部分不必要的标签
parent
763c44ca
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
40 deletions
+1
-40
src/pages/home/components/myDigtalPeople.vue
+1
-8
src/utils/tool.ts
+0
-32
No files found.
src/pages/home/components/myDigtalPeople.vue
View file @
89216715
...
...
@@ -78,6 +78,7 @@ const props = withDefaults(
const
router
=
useRouter
();
const
myDigtalList
=
reactive
({
// 显示的列表
list
:
[],
loading
:
false
,
});
...
...
@@ -143,12 +144,6 @@ const startLive = (item: any) => {
let
params
=
beforePageJump
(
item
);
if
(
params
)
{
if
(
isDev
())
{
// 传一个id跳转到页面(旧的播放页面)
// router.push({
// path: routerConfig.startLive.path,
// name: routerConfig.startLive.name,
// query: params,
// });
// 新的播放页面
router
.
push
({
path
:
routerConfig
.
onlyVideoLive
.
path
,
...
...
@@ -157,8 +152,6 @@ const startLive = (item: any) => {
});
}
else
{
params
.
page_path
=
routerConfig
.
onlyVideoLive
.
path
;
// window.pyjs.openLivePage(JSON.stringify(params));
// 打开只有视频播放的页面
callPyjsInWindow
(
'openLivePage'
,
params
);
}
...
...
src/utils/tool.ts
View file @
89216715
...
...
@@ -414,38 +414,6 @@ export const randomIntFormList = (list: any[]) => {
}
};
// 循环耗时测试
export
function
timeComparison
()
{
let
list
=
new
Array
(
1000000000
);
let
start
,
end
,
i
;
// 测试for循环的执行时间
start
=
performance
.
now
();
for
(
i
=
0
;
i
<
list
.
length
;
i
++
)
{
let
item
=
list
[
i
];
}
end
=
performance
.
now
();
console
.
log
(
'for循环执行时间:'
+
(
end
-
start
)
+
' 毫秒'
);
// 测试while循环的执行时间
start
=
performance
.
now
();
i
=
0
;
while
(
i
<
list
.
length
)
{
let
item
=
list
[
i
];
i
++
;
}
end
=
performance
.
now
();
console
.
log
(
'while循环执行时间:'
+
(
end
-
start
)
+
' 毫秒'
);
// 测试forEach的时间
start
=
performance
.
now
();
list
.
forEach
((
item
:
any
)
=>
{
let
it
=
item
;
});
end
=
performance
.
now
();
console
.
log
(
'forEach循环执行时间:'
+
(
end
-
start
)
+
' 毫秒'
);
}
// 从二维数组中合并同类
export
const
mergedArray
=
(
arr
:
any
[],
key
:
string
=
'uuid'
,
first
:
string
=
'is_old'
)
=>
{
let
newList
=
[];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment