import request from '@/utils/request'
import {baseUrl} from '@/utils/constant'


export function autoLogin(data) {
    return request({
        url: baseUrl + '/simulate_login/get',
        method: 'post',
        data
    }).then(res => {
        const authToken = res.data
        if(authToken){
            console.log('https://test2.adsdesk.cn/login?authToken=' + authToken)
            window.open('https://test2.adsdesk.cn/login?authToken=' + authToken)
        }
    })
}