Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zghywpc-vue
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李苏
zghywpc-vue
Commits
4af55f4d
Commit
4af55f4d
authored
Oct 10, 2024
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
操作模型对象 try 保护
parent
d78fbec1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
47 additions
and
55 deletions
+47
-55
index.vue
src/views/yhlywsytst/yhlywsytst/index.vue
+47
-55
No files found.
src/views/yhlywsytst/yhlywsytst/index.vue
View file @
4af55f4d
...
...
@@ -2,7 +2,7 @@
* @Description:
* @Author: lisu lisu@gavelinfo.com
* @LastEditors: lisu lisu@gavelinfo.com
* @LastEditTime: 2024-10-
08 16:51:55
* @LastEditTime: 2024-10-
10 15:08:18
* @FilePath: /zghywpc-vue/src/views/yhlywsytst/yhlywsytst/index.vue
-->
<
template
>
...
...
@@ -1504,13 +1504,8 @@
return
}
try
{
let
model
/* 测试判定,实际根据模型实际特征来判定*/
// if (intersects[0].object.name == '') {
// model = intersects[1].object
// } else {
// model = intersects[0].object
// }
let
modelIndex
=
intersects
.
findIndex
(
item
=>
item
.
object
.
name
!==
''
&&
item
.
object
.
visible
==
true
)
if
(
modelIndex
!=-
1
){
rconsole
.
log
(
`当前选中
${
modelIndex
}
`
)
...
...
@@ -1553,14 +1548,11 @@
opacity
:
0.8
,
wireframe
:
false
,
})
/* */
// if (this.xzjj) {
// const object = model;
// if (object) {
// this.viewer.cameraControl.fitTo(object);
// }
}
catch
(
e
){
rconsole
.
log
(
e
)
}
// }
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment