feat: There is no way the, weblink 免登陆
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
import axios from 'axios'
|
||||
import util from 'util'
|
||||
import { get_verify_by_instance,loginIdm,getMenu,checkPageNoEncryption } from 'api/process'
|
||||
import { getUserInfoByAuthCode,getIftappCodeByWelinkCode } from 'api/phoneWeLink'
|
||||
import { ssoLoginUrlDev,ssoLogoutUrlDev,ssoLoginUrl,webLoginType,devWebUrl } from '@/sysConfig'
|
||||
import HWH5 from '../../api/hwh5-cloudonline.js';
|
||||
|
||||
@@ -100,27 +101,21 @@
|
||||
computed: {
|
||||
},
|
||||
mounted () {
|
||||
HWH5.getAuthCode().then(data => {
|
||||
window.HWH5.getAuthCode().then(data => {
|
||||
console.log(data)
|
||||
if(data){
|
||||
let code = data.code
|
||||
console.log(code)
|
||||
let greeting_cards = "standards regulations"
|
||||
axios.request({
|
||||
url: 'https://iftappwelink.foton.com.cn/devserver/welink/getIftappCodeByWelinkCode?code='+code+"&name=" + encodeURIComponent(greeting_cards),
|
||||
method: 'post',
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
getIftappCodeByWelinkCode({
|
||||
code: code,
|
||||
name: encodeURIComponent("standards regulations"),
|
||||
}).then(res => {
|
||||
console.log(res)
|
||||
if(res.data){
|
||||
axios.request({
|
||||
url: 'https://iftappwelink.foton.com.cn/devserver/welink/getUserInfoByAuthCode?code='+code,
|
||||
method: 'get',
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
getUserInfoByAuthCode({
|
||||
code: code,
|
||||
}).then(res => {
|
||||
console.log(res)
|
||||
if(res.data){
|
||||
let userName = res.data.username;
|
||||
if(userName !== undefined && userName !== ""){
|
||||
|
||||
Reference in New Issue
Block a user