zjs_project 1 year ago
parent
commit
1cb9a5bc3d
3 changed files with 6 additions and 5 deletions
  1. 4 4
      src/mixins/loadModel.js
  2. 1 0
      src/router/index.js
  3. 1 1
      src/static/layoutModelData.js

+ 4 - 4
src/mixins/loadModel.js

@@ -28,10 +28,10 @@ export default {
 	watch: {},
 	mounted() {
 		console.warn("***loadmodel-mounted****")
-		this.dracoLoader = new DRACOLoader();
-		this.dracoLoader.setDecoderPath('/gltf/');
-		this.dracoLoader.setDecoderConfig( { type: 'js' } );
-		this.dracoLoader.preload();
+		// this.dracoLoader = new DRACOLoader();
+		// this.dracoLoader.setDecoderPath('/gltf/');
+		// this.dracoLoader.setDecoderConfig( { type: 'js' } );
+		// this.dracoLoader.preload();
 	},
 	methods: {
 		// 设置空间数组的墙体信息 

+ 1 - 0
src/router/index.js

@@ -11,6 +11,7 @@ import webgl_rxdz_customize from '@/pages/webgl_rxdz_customize/webgl_rxdz_custom
 Vue.use(Router)
 const router = new Router({
     mode: 'hash',
+    // mode: 'history',
     routes: [
         // 页面初始化
         {

+ 1 - 1
src/static/layoutModelData.js

@@ -148,7 +148,7 @@ var layoutModel = [
 	{url: 'https://dm.static.elab-plus.com/miniProgram/model/BP_L_1Sofa01.glb', name: '单人沙发01',modelName: 'BP_L_1Sofa01', type:1},
 	{url: 'https://dm.static.elab-plus.com/miniProgram/model/BP_L_1Sofa02.glb', name: '单人沙发02',modelName: 'BP_L_1Sofa02', type:1},
 	{url: 'https://dm.static.elab-plus.com/miniProgram/model/BP_L_1sofa03.glb', name: '单人沙发03',modelName: 'BP_L_1sofa03', type:1},
-	{url: 'https://dm.static.elab-plus.com/miniProgram/model/BP_L_backsofa01.glb', name: '单人沙发03',modelName: 'BP_L_backsofa01', type:1},
+	// {url: 'https://dm.static.elab-plus.com/miniProgram/model/BP_L_backsofa01.glb', name: '单人沙发03',modelName: 'BP_L_backsofa01', type:1},
 	
 	
 	{url: 'https://dm.static.elab-plus.com/miniProgram/model/BP_X_RelaxTable01.gltf', name: '单独休闲桌01',modelName: 'BP_X_RelaxTable01', type:1},