diff --git a/src/api/modules/sso.js b/src/api/modules/sso.js
new file mode 100644
index 0000000..02ba36b
--- /dev/null
+++ b/src/api/modules/sso.js
@@ -0,0 +1,12 @@
+import { instance as request } from '@/utils/request'
+
+export default {
+ // 登录
+ ssoLogin(data) {
+ return request({
+ url: '/api/ssoLogin',
+ method: 'get',
+ params:data
+ })
+ },
+}
diff --git a/src/router/modules/default.js b/src/router/modules/default.js
index 10bdfa6..0e51212 100644
--- a/src/router/modules/default.js
+++ b/src/router/modules/default.js
@@ -1,3 +1,6 @@
+const isDev = process.env.NODE_ENV && process.env.NODE_ENV === 'development'
+console.log(isDev,"process.env.")
+let myUrl=encodeURI('http://10.0.1.14:8080/checkPage')
const routes = [
{
path: '/system',
@@ -15,16 +18,33 @@ const routes = [
},
{
path: '/',
- redirect: {
- name: 'Login'
- // path: '/report/list?id=XBFBR7UADZ'
- }
+ redirect: () => {
+ window.location.href ='https://iamuat.faw-vw.com/esc-sso/oauth2.0/authorize/old?isADSSO=true&response_type=code&client_id=&redirect_uri='+myUrl
+ }
+ // 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://iamuat.faw-vw.com/esc-sso/oauth2.0/authorize/old?isADSSO=true&response_type=code&client_id=&redirect_uri='+myUrl
+ // 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"
},
// // 注册
// {
diff --git a/src/views/checkPage.vue b/src/views/checkPage.vue
new file mode 100644
index 0000000..b29c9a4
--- /dev/null
+++ b/src/views/checkPage.vue
@@ -0,0 +1,82 @@
+
+
+
+
+
+
+