76 lines
2.4 KiB
JavaScript
76 lines
2.4 KiB
JavaScript
const isDev = process.env.NODE_ENV && process.env.NODE_ENV === 'development'
|
|
console.log(isDev,"process.env.")
|
|
let myUrl='http%3A%2F%2F127.0.0.1%3A8080%2FcheckPage'
|
|
const routes = [
|
|
{
|
|
path: '/system',
|
|
name: '',
|
|
component: () => import('../../views/Layout.vue'),
|
|
children: [
|
|
{
|
|
path: 'urlIndex',
|
|
name: 'urlIndex',
|
|
component: () => import('../../views/System/urlIndex.vue'),
|
|
meta: {
|
|
crumb: ['urlIndex']
|
|
}
|
|
}]
|
|
},
|
|
{
|
|
path: '/',
|
|
redirect: () => {
|
|
window.location.href ='https://iam.faw-vw.com/esc-sso/oauth2.0/authorize?client_id=43da19911e74a14dd5d9&response_type=code&redirect_uri=http%3A%2F%2F10.94.1.164%3A8888%2FcheckPage'
|
|
}
|
|
// window.location.href = "https://sso-qa.saicmotortest.com/idp/oauth2/authorize?redirect_uri=https://www.baidu.com/&state=gsrm&client_id=GSRM&response_type=code"
|
|
|
|
},
|
|
{
|
|
path: '/checkPage',
|
|
component: () => import('../../views/checkPage.vue')
|
|
|
|
},
|
|
// 登录
|
|
{
|
|
path: '/login',
|
|
name: 'Login',
|
|
redirect: () => {
|
|
window.location.href ='https://iam.faw-vw.com/esc-sso/oauth2.0/authorize?client_id=43da19911e74a14dd5d9&response_type=code&redirect_uri=http%3A%2F%2F10.94.1.164%3A8888%2FcheckPage'
|
|
|
|
// window.location.href = "https://sso-qa.saicmotortest.com/idp/oauth2/authorize?redirect_uri=https://www.baidu.com/&state=gsrm&client_id=GSRM&response_type=code"
|
|
}
|
|
// window.location.href = "https://sso-qa.saicmotortest.com/idp/oauth2/authorize?redirect_uri=https://www.baidu.com/&state=gsrm&client_id=GSRM&response_type=code"
|
|
},
|
|
// 登录
|
|
{
|
|
path: '/loginout',
|
|
name: 'Login',
|
|
component: () => import('../../views/Login.vue')
|
|
// window.location.href = "https://sso-qa.saicmotortest.com/idp/oauth2/authorize?redirect_uri=https://www.baidu.com/&state=gsrm&client_id=GSRM&response_type=code"
|
|
},
|
|
// // 注册
|
|
// {
|
|
// path: '/register',
|
|
// name: 'Register',
|
|
// component: () => import('../../views/Register.vue')
|
|
// },
|
|
// 首页
|
|
// {
|
|
// path: '/home',
|
|
// name: 'Home',
|
|
// component: () => import('../../views/Home.vue')
|
|
// },
|
|
{
|
|
path: '/layout',
|
|
name: 'LayoutBox',
|
|
component: () => import('../../views/Layout.vue')
|
|
}
|
|
// // Demo
|
|
// {
|
|
// path: '/demo',
|
|
// name: 'Demo',
|
|
// component: () => import('../../components/Demo.vue')
|
|
// },
|
|
]
|
|
|
|
export default routes
|