| | |
| | | // IMG_API: '"http://192.168.0.35:8006/upload/"', |
| | | BASE_API: '"http://222.92.213.21:8006/zhongtai"', |
| | | IMG_API: '"http://222.92.213.21:8006/zhongtai/upload/"', |
| | | NANO_API: '"http://127.0.0.1:8081/zhongtaiexam"', |
| | | // BASE_API: '"http://220.171.99.118:4101/api"', |
| | | // IMG_API: '"http://220.171.99.118:4101/api/upload/"', |
| | | }; |
| | |
| | | |
| | | BASE_API: '"http://222.92.213.21:8006/zhongtai"', |
| | | IMG_API: '"http://222.92.213.21:8006/zhongtai/upload/"', |
| | | NANO_API: '"http://222.92.213.21:8006/nanoweb"', |
| | | } |
对比新文件 |
| | |
| | | import {getToken} from "../utils/auth"; |
| | | import request from '@/utils/request' |
| | | |
| | | export function getExamAuth(params) { |
| | | return request({ |
| | | headers:{ |
| | | 'Access-Control-Allow-Origin':'*', |
| | | 'Authorization':getToken() |
| | | }, |
| | | url:process.env.NANO_API+ '/foreground/system/auth/verify.do', |
| | | method:'get', |
| | | params:params |
| | | }) |
| | | } |
对比新文件 |
| | |
| | | <template> |
| | | <div class="app-container"> |
| | | <el-alert |
| | | :title="message" |
| | | :type="flag?'success':'error'"> |
| | | </el-alert> |
| | | |
| | | </div> |
| | | |
| | | </template> |
| | | |
| | | <script> |
| | | import {getExamAuth} from '@/api/exam' |
| | | import {getToken} from "@/utils/auth" |
| | | import Cookies from 'js-cookie' |
| | | import request from '@/utils/request' |
| | | export default { |
| | | name: "current", |
| | | |
| | | created(){ |
| | | this.getExamAuth() |
| | | }, |
| | | data(){ |
| | | return { |
| | | pass:false, |
| | | message: '' |
| | | } |
| | | }, |
| | | methods:{ |
| | | queryHandle(){ |
| | | }, |
| | | getExamAuth(){ |
| | | getExamAuth({token:getToken()}) |
| | | .then(res=>{ |
| | | if (res.data.code === 'failure') { |
| | | this.flag = false |
| | | this.message = res.data.message; |
| | | } |
| | | if (res.data.code === 'success') { |
| | | this.flag = true |
| | | this.message = res.data.message |
| | | Cookies.set('JSESSIONID',res.data.data.ssid) |
| | | window.open(process.env.NANO_API + "/foreground/system/noLogin/redirect?sessionId="+res.data.data.ssid ) |
| | | |
| | | } |
| | | }) |
| | | .catch(err=>{ |
| | | console.log(err) |
| | | this.flag = false |
| | | this.message = '请求出现问题,请联系管理员' |
| | | }) |
| | | |
| | | } |
| | | |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | .span-filter-label{ |
| | | font-size: 15px; |
| | | color: #606266; |
| | | margin-right: 4px; |
| | | margin-left: 7px; |
| | | } |
| | | |
| | | .basic_search{ |
| | | margin-bottom: 15px; |
| | | } |
| | | </style> |