zjs_project hai 1 ano
pai
achega
e631023487
Modificáronse 2 ficheiros con 1 adicións e 17 borrados
  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;