Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
najiu-skynet-admin
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
najiu-frontend
najiu-skynet-admin
Commits
8a2e212d
Commit
8a2e212d
authored
Nov 10, 2021
by
朱松文
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
message error log
parent
1a6a9d80
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
index.html
public/index.html
+10
-0
CameraService.ts
src/service/CameraService.ts
+3
-2
No files found.
public/index.html
View file @
8a2e212d
...
@@ -13,6 +13,16 @@
...
@@ -13,6 +13,16 @@
<strong>
We're sorry but
<
%=
htmlWebpackPlugin
.
options
.
title
%
>
doesn't work properly without JavaScript enabled. Please enable it to continue.
</strong>
<strong>
We're sorry but
<
%=
htmlWebpackPlugin
.
options
.
title
%
>
doesn't work properly without JavaScript enabled. Please enable it to continue.
</strong>
</noscript>
</noscript>
<div
id=
"app"
></div>
<div
id=
"app"
></div>
<script>
window
.
addEventListener
(
'
beforeunload
'
,
function
(
event
){
alert
(
''
)
console
.
log
(
'
aa
'
,
event
)
})
// window.onbeforeunload = function (e) {
// alert('')
// }
</script>
<!-- built files will be auto injected -->
<!-- built files will be auto injected -->
</body>
</body>
</html>
</html>
src/service/CameraService.ts
View file @
8a2e212d
...
@@ -2,7 +2,8 @@ import { responseData } from "@/types/response"
...
@@ -2,7 +2,8 @@ import { responseData } from "@/types/response"
import
NetUtil
from
'
@/utils/http
'
import
NetUtil
from
'
@/utils/http
'
import
api
from
'
@/configs/apiConfig
'
import
api
from
'
@/configs/apiConfig
'
import
{
TrackData
}
from
"
@/components/MyVideo/data
"
;
import
{
TrackData
}
from
"
@/components/MyVideo/data
"
;
import
{
getItem
,
setItem
,
clear
}
from
'
@/utils/indexdbHelper
'
import
{
getItem
,
setItem
}
from
'
@/utils/indexdbHelper
'
import
{
Message
}
from
'
element-ui
'
export
function
getCamera
(
pageData
:
any
):
Promise
<
responseData
>
{
export
function
getCamera
(
pageData
:
any
):
Promise
<
responseData
>
{
return
NetUtil
.
fetch_request
(
'
camera/paging
'
,
'
POST
'
,
pageData
)
return
NetUtil
.
fetch_request
(
'
camera/paging
'
,
'
POST
'
,
pageData
)
...
@@ -96,7 +97,7 @@ export async function addTrackData(dog, player) {
...
@@ -96,7 +97,7 @@ export async function addTrackData(dog, player) {
setItem
(
dog
.
labelFileName
,
{
dogIds
,
trackData
})
setItem
(
dog
.
labelFileName
,
{
dogIds
,
trackData
})
player
.
onTrackDataChange
(
dogIds
,
trackData
,
dog
.
id
);
player
.
onTrackDataChange
(
dogIds
,
trackData
,
dog
.
id
);
}
catch
(
err
)
{
}
catch
(
err
)
{
this
.
$m
essage
.
error
(
"
下载标识文件失败
"
);
M
essage
.
error
(
"
下载标识文件失败
"
);
console
.
log
(
console
.
log
(
`%c-下载标识文件失败:
${
err
}
`
,
`%c-下载标识文件失败:
${
err
}
`
,
"
color: red; background: yellow;
"
"
color: red; background: yellow;
"
...
...
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