소스 검색

新增模型

zjs_project 1 년 전
부모
커밋
e631023487
2개의 변경된 파일1개의 추가작업 그리고 17개의 파일을 삭제
  1. 0 17
      src/App.vue
  2. 1 0
      src/static/layoutModelData.js

+ 0 - 17
src/App.vue

@@ -66,23 +66,6 @@
 					alert('监测到E1004错误' + error);
 				}
 			}, true)
-			window.addEventListener('beforeunload', function(event) {
-				// 检查内存使用情况
-				if (performance.memory.usedJSHeapSize >= performance.memory.jsHeapSizeLimit) {
-					// 内存不足,执行重新加载页面的逻辑
-					event.preventDefault();
-					// window.location.reload();
-					alert("**内存不足,页面重新载入**")
-				}
-			});
-			// 监听页面隐藏事件
-			window.addEventListener('pagehide', function(event) {
-			    // 判断页面是否因为内存不足而被卸载或隐藏
-			    if (event.persisted) {
-			        // 页面被卸载或隐藏,可以执行一些重载操作
-			        alert("**内存不足,页面重新载入ios**")
-			    }
-			});
 
 			// window.onerror = function(message,source,line,column,error) {
 			// };

+ 1 - 0
src/static/layoutModelData.js

@@ -162,6 +162,7 @@ var layoutModel = [
 	{url: 'https://dm.static.elab-plus.com/miniProgram/model/BP_L_CeilingLamp_01.glb', name: '吊灯01',modelName: 'BP_L_CeilingLamp_01', type:2},
 	{url: 'https://dm.static.elab-plus.com/miniProgram/model/BP_L_FloorLamp01.glb', name: '地灯05',modelName: 'BP_L_FloorLamp01', type:2},
 	{url: 'https://dm.static.elab-plus.com/miniProgram/model/BP_L_CeilingLamp_02.glb', name: '吊灯02',modelName: 'BP_L_CeilingLamp_02', type:2},
+	{url: 'https://dm.static.elab-plus.com/miniProgram/model/BP_G_grass01.glb', name: '草地',modelName: 'BP_G_grass01', type:1},
 ];
 
 module.exports = layoutModel;