Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
isc-web-vue
Overview
Overview
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
isc-v3.1-tmp
isc-web-vue
Commits
ff7f23c0
Commit
ff7f23c0
authored
Oct 28, 2024
by
李少勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加单点登录功能
parent
e6b262ba
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
0 deletions
+35
-0
singlePage.vue
src/page/singlePage.vue
+26
-0
index.js
src/router/index.js
+9
-0
No files found.
src/page/singlePage.vue
0 → 100644
View file @
ff7f23c0
<
template
>
<div>
</div>
</
template
>
<
script
>
import
Api
from
'~/service/Api'
;
export
default
{
name
:
'singlePage'
,
mounted
()
{
this
.
redirectTo
()
},
methods
:
{
async
redirectTo
()
{
let
query
=
this
.
$route
.
query
;
// let params = {
// username: query.username,
// password: query.password
// }
// const rtnmsg = await Api.post(`/xxx/xxx/init`, params);
// if (rtnmsg.respCode === SUCCESS) {
// }
window
.
open
(
'http://192.168.0.114:8099/ips/layout.zul'
,
'_self'
);
}
}
}
</
script
>
src/router/index.js
View file @
ff7f23c0
...
...
@@ -13,6 +13,7 @@ Vue.use(Router)
import
login
from
'../page/login.vue'
import
index
from
'../page/index.vue'
import
noLogin
from
'../page/noLogin.vue'
import
singlePage
from
'../page/singlePage.vue'
import
isc_404
from
'../page/isc_404.vue'
import
business
,
{
docpan
}
from
'./business'
...
...
@@ -54,6 +55,14 @@ routes: [
title
:
'未登录或登录超时'
}
},
{
path
:
'/singlePage'
,
component
:
singlePage
,
name
:
'singlePage'
,
meta
:{
title
:
'单点登录'
}
},
{
path
:
'*'
,
component
:
index
,
...
...
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