Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
FleetTruckView
Project
Project
Details
Activity
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
FleetTruck
FleetTruckView
Commits
f2416620
Commit
f2416620
authored
Sep 11, 2025
by
李玲燕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改页面title
parent
4dd5da06
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
3 deletions
+17
-3
CMakeLists.txt
CMakeLists.txt
+1
-1
index.html
index.html
+1
-1
Main.vue
src/views/Main.vue
+15
-1
No files found.
CMakeLists.txt
View file @
f2416620
...
...
@@ -8,7 +8,7 @@ set (CMAKE_CXX_STANDARD 11)
# Version.
set
(
MAJOR_VERSION
"1"
)
set
(
MINOR_VERSION
"2"
)
set
(
PATCH_VERSION
"
7
"
)
set
(
PATCH_VERSION
"
8
"
)
# Import cmake modules.
list
(
APPEND CMAKE_MODULE_PATH
"$ENV{HT_BUILDSYS_CMAKE_MODULES}"
)
...
...
index.html
View file @
f2416620
...
...
@@ -4,7 +4,7 @@
<meta
charset=
"UTF-8"
>
<link
rel=
"icon"
href=
"/favicon.ico"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<title>
Vite App
</title>
<title>
truck-view
</title>
</head>
<body>
<div
id=
"app"
></div>
...
...
src/views/Main.vue
View file @
f2416620
...
...
@@ -162,7 +162,7 @@ const { appContext } = instance;
const
{
$indexRoot
}
=
appContext
.
config
.
globalProperties
;
const
vehicleStore
=
useVehicleStore
();
const
vehicleStoreToRefs
=
storeToRefs
(
vehicleStore
);
const
{
tipInfo
,
infoPop
}
=
vehicleStoreToRefs
;
const
{
tipInfo
,
infoPop
,
pairinfo
}
=
vehicleStoreToRefs
;
onBeforeMount
(()
=>
{
window
.
addEventListener
(
"beforeunload"
,
()
=>
{
...
...
@@ -348,6 +348,20 @@ watch(
}
);
watch
(
pairinfo
,
(
msg
)
=>
{
if
(
msg
)
{
let
{
truckId
}
=
msg
;
window
.
document
.
title
=
truckId
||
'truck-view'
;
}
},
{
deep
:
true
,
immediate
:
true
,
}
);
onBeforeUnmount
(()
=>
{
$indexRoot
.
destroyData
();
window
.
removeEventListener
(
"beforeunload"
,
handleSubscribe
());
...
...
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