Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
holo-web
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
xinkong
holo-web
Commits
a941201f
Commit
a941201f
authored
Jun 28, 2023
by
ninglx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
处理pako解压数据为空
parent
795327b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
pathMapCtrl.vue
wj-manage-web/src/views/efficiency/pathMapCtrl.vue
+11
-6
No files found.
wj-manage-web/src/views/efficiency/pathMapCtrl.vue
View file @
a941201f
...
...
@@ -130,12 +130,17 @@ export default {
trackApi
[
this
.
apiName
](
this
.
params
).
then
((
res
)
=>
{
// trackApi[this.apiName](customParam).then((res) => {
let
data
=
pako
.
inflate
(
res
);
// pako解压为protobuf
let
realData
=
FrameList
.
decode
(
data
);
// protobuf根据定义类型转json
this
.
fullTrack
=
realData
.
frameInfo
;
this
.
$nextTick
(()
=>
{
this
.
loading
=
false
;
this
.
$refs
.
pathMap
.
render
();
});
console
.
log
(
"
protobuf data
"
,
data
);
if
(
data
)
{
let
realData
=
FrameList
.
decode
(
data
);
// protobuf根据定义类型转json
this
.
fullTrack
=
realData
.
frameInfo
;
this
.
$nextTick
(()
=>
{
this
.
$refs
.
pathMap
.
render
();
});
}
else
{
this
.
$message
(
"
暂无轨迹数据
"
);
}
this
.
loading
=
false
;
});
},
playClick
()
{
...
...
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