Commit ff7f23c0 by 李少勇

增加单点登录功能

parent e6b262ba
<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>
......@@ -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'
......@@ -55,6 +56,14 @@ routes: [
}
},
{
path:'/singlePage',
component: singlePage,
name: 'singlePage',
meta:{
title:'单点登录'
}
},
{
path:'*',
component:index,
children:[
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment