Explorar o código

feat: 延迟检测资源动态加载

TIANYONG hai 1 ano
pai
achega
2f4e09eca6
Modificáronse 1 ficheiros con 4 adicións e 4 borrados
  1. 4 4
      src/page-instrument/evaluat-model/delay-check/index.tsx

+ 4 - 4
src/page-instrument/evaluat-model/delay-check/index.tsx

@@ -67,15 +67,15 @@ export default defineComponent({
 		});
 
 		const initJson = async () => {
-			console.log('开始加载')
+			// console.log('开始加载')
 			// const bg = await import(`./json/bg.json`);
 			// const bg1 = await import(`./json/bg1.json`);
 			/* @vite-ignore */
-			// data.bg = await import(`./json/bg_new.json`);
-			data.bg = getJson('bg_new.json');
+			data.bg = await import(`./json/bg_new.json`);
+			// data.bg = getJson('bg_new.json');
 			data.jsonDone = true;
 			evaluatingData.jsonLoadDone = true;
-			console.log('延迟检测资源加载完成')
+			// console.log('延迟检测资源加载完成')
 		}
 
 		// 调用'isWiredHeadsetOn'最小时间间隔,1秒