Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
refined-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
refined-platform
Commits
53cfe7d3
Commit
53cfe7d3
authored
Aug 11, 2023
by
姬鋆屾
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tui
parent
21f4e30c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
11 deletions
+24
-11
refined-manager-ui/admin/src/components/Header.vue
refined-manager-ui/admin/src/components/Header.vue
+12
-9
refined-manager-ui/admin/src/views/SSO.vue
refined-manager-ui/admin/src/views/SSO.vue
+12
-2
No files found.
refined-manager-ui/admin/src/components/Header.vue
View file @
53cfe7d3
...
...
@@ -9,15 +9,10 @@
<i
class=
"el-icon-menu"
@
click=
"showMobileMenu = !showMobileMenu"
>
</i>
<router-link
to=
"/"
>
<img
src=
"../assets/images/logo.png"
style=
"margin-bottom:5px"
height=
"40"
alt=
""
/>
<img
:src=
"sysLogo"
style=
"margin-bottom:5px"
height=
"40"
alt=
""
/>
<b
style=
"color:white;font-size:18px;"
>
智慧大厅精细化管理系统
</b
>
{{
title
}}
</b
>
</router-link>
</div>
...
...
@@ -146,7 +141,13 @@ export default {
console
.
log
(
"
beforeDestroy
"
);
//window.removeEventListener("message", this.getsocketData, false);
},
mounted
()
{
created
()
{
localStorage
.
getItem
(
"
sysName
"
)
?
(
this
.
title
=
localStorage
.
getItem
(
"
sysName
"
))
:
""
;
localStorage
.
getItem
(
"
sysLogo
"
)
?
(
this
.
sysLogo
=
require
(
localStorage
.
getItem
(
"
sysLogo
"
)))
:
(
this
.
sysLogo
=
require
(
"
../assets/images/logo.png
"
));
// console.log("mounted");
// this.$nextTick(function () {
// console.log("login websocket:"+"ws://"+process.env.VUE_APP_WEBSOCKET_API +"/ws?accessToken="+ this.$store.state.userData.id)
...
...
@@ -254,6 +255,8 @@ export default {
return
{
showMobileMenu
:
false
,
portal
:
process
.
env
.
VUE_APP_PORTAL_URL
+
"
/#/home/siteArrange
"
,
title
:
"
智慧大厅精细化管理系统
"
,
sysLogo
:
""
,
};
},
};
...
...
refined-manager-ui/admin/src/views/SSO.vue
View file @
53cfe7d3
...
...
@@ -12,13 +12,23 @@ export default {
if
(
token
)
{
window
.
sessionStorage
.
setItem
(
"
token
"
,
token
);
window
.
sessionStorage
.
setItem
(
"
siteid
"
,
siteid
);
this
.
$route
.
query
.
sysName
?
localStorage
.
setItem
(
"
sysName
"
,
this
.
$route
.
query
.
sysName
)
:
""
;
this
.
$route
.
query
.
sysName
?
(
document
.
title
=
this
.
$route
.
query
.
sysName
)
:
""
;
this
.
$route
.
query
.
sysLogo
?
localStorage
.
setItem
(
"
sysLogo
"
,
this
.
$route
.
query
.
sysLogo
)
:
""
;
this
.
$router
.
push
(
"
/index
"
);
// 有token直接跳转首页
}
else
{
this
.
$message
({
message
:
"
没有权限,正在跳转登录页面...
"
,
center
:
true
,
});
setTimeout
(
function
()
{
setTimeout
(
function
()
{
window
.
location
.
href
=
process
.
env
.
VUE_APP_PORTAL_URL
==
"
undefined
"
?
"
http://192.168.0.98:11072
"
...
...
@@ -35,4 +45,4 @@ export default {
width
:
300px
;
height
:
100px
;
}
</
style
>
\ No newline at end of file
</
style
>
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