Commit 89216715 by haojie

减去部分不必要的标签

parent 763c44ca
...@@ -78,6 +78,7 @@ const props = withDefaults( ...@@ -78,6 +78,7 @@ const props = withDefaults(
const router = useRouter(); const router = useRouter();
const myDigtalList = reactive({ const myDigtalList = reactive({
// 显示的列表
list: [], list: [],
loading: false, loading: false,
}); });
...@@ -143,12 +144,6 @@ const startLive = (item: any) => { ...@@ -143,12 +144,6 @@ const startLive = (item: any) => {
let params = beforePageJump(item); let params = beforePageJump(item);
if (params) { if (params) {
if (isDev()) { if (isDev()) {
// 传一个id跳转到页面(旧的播放页面)
// router.push({
// path: routerConfig.startLive.path,
// name: routerConfig.startLive.name,
// query: params,
// });
// 新的播放页面 // 新的播放页面
router.push({ router.push({
path: routerConfig.onlyVideoLive.path, path: routerConfig.onlyVideoLive.path,
...@@ -157,8 +152,6 @@ const startLive = (item: any) => { ...@@ -157,8 +152,6 @@ const startLive = (item: any) => {
}); });
} else { } else {
params.page_path = routerConfig.onlyVideoLive.path; params.page_path = routerConfig.onlyVideoLive.path;
// window.pyjs.openLivePage(JSON.stringify(params));
// 打开只有视频播放的页面 // 打开只有视频播放的页面
callPyjsInWindow('openLivePage', params); callPyjsInWindow('openLivePage', params);
} }
......
...@@ -414,38 +414,6 @@ export const randomIntFormList = (list: any[]) => { ...@@ -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') => { export const mergedArray = (arr: any[], key: string = 'uuid', first: string = 'is_old') => {
let newList = []; let newList = [];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment