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
31d370b0
Commit
31d370b0
authored
Dec 03, 2024
by
李玲燕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加云端跳转自动登录、修改CMake打包配置
parent
f9e8357e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
2 deletions
+17
-2
CMakeLists.txt
CMakeLists.txt
+5
-1
Login.vue
src/views/Login.vue
+12
-1
No files found.
CMakeLists.txt
View file @
31d370b0
...
...
@@ -8,7 +8,7 @@ set (CMAKE_CXX_STANDARD 11)
# Version.
set
(
MAJOR_VERSION
"1"
)
set
(
MINOR_VERSION
"2"
)
set
(
PATCH_VERSION
"
3
"
)
set
(
PATCH_VERSION
"
4
"
)
# Import cmake modules.
list
(
APPEND CMAKE_MODULE_PATH
"$ENV{HT_BUILDSYS_CMAKE_MODULES}"
)
...
...
@@ -43,4 +43,8 @@ set (CPACK_PACKAGE_VERSION_PATCH "${PATCH_VERSION}")
set
(
CPACK_PACKAGE_CONTACT
"Li Lingyan <lingyan.li@waytous.com>, Gao Xiaofan <xiaofan.gao@waytous.com>"
)
set
(
CPACK_DEBIAN_PACKAGE_DESCRIPTION
"webtruckview. Branch:
${
GIT_BRANCH
}
. Commit:
${
GIT_LAST_COMMIT
}
."
)
# 运维配置路径
add_deb_conffiles
(
FILES
"/var/www/
${
PROJECT_NAME
}
/dist/config.json"
)
include
(
HtCMakeDeb
)
src/views/Login.vue
View file @
31d370b0
...
...
@@ -29,7 +29,7 @@
</
template
>
<
script
setup
>
import
{
reactive
,
ref
,
watch
,
getCurrentInstance
}
from
'vue'
;
import
{
reactive
,
ref
,
watch
,
getCurrentInstance
,
onBeforeMount
}
from
'vue'
;
import
{
storeToRefs
}
from
'pinia'
import
{
Message
}
from
'view-ui-plus'
;
import
{
useStateStore
}
from
'@/store/StateStore.js'
...
...
@@ -54,6 +54,17 @@
password
:
''
})
onBeforeMount
(()
=>
{
let
url
=
decodeURI
(
window
.
location
.
href
)
console
.
log
(
url
)
let
[,
remote
]
=
url
.
split
(
'?obj='
)
if
(
remote
&&
remote
==
'web_view'
)
{
formItem
.
number
=
'admin'
formItem
.
password
=
'admin'
handleSubmit
()
}
})
function
handleSubmit
()
{
if
(
isShowLoading
.
value
)
return
if
(
truckMonitorStatus
.
value
)
return
Message
.
error
(
'车端未启动,无法登录!'
)
...
...
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