提交 13d5b4c5 authored 作者: 钟是志's avatar 钟是志

登录以后就调接口查时间

上级 4364ccf3
/* eslint no-useless-escape:0 import/prefer-default-export:0 */
import { Modal, Popconfirm, message } from 'antd';
import { uaaRequest } from '@/webPublic/one_stop_public/utils/request';
import { getTime } from '@/webPublic/zyd_public/utils/queryCurrent';
const reg = /(((^https?:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+(?::\d+)?|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)$/;
......@@ -57,6 +58,7 @@ export const getMessage = () => {
};
export const getOneStopMyInfo = (params = {}) => {
getTime();
return uaaRequest('/UserApi/getMy', params).then((res) => {
if (res) {
if(!res.groupsId){
......
import request from '@/webPublic/zyd_public/request/request';
import config from '@/config/config';
window.differenceBetweenServerAndClientTime = 0;
const getTime = () => {
export const getTime = () => {
return request(`${config.mockServer}/${config.gateWayUrl.zydxg}/InstructorConfigApi/getCurrentDate`, {
method: 'POST',
body: {},
......
......@@ -6,13 +6,6 @@ import React from 'react';
import moment from 'moment';
import { Icon, message, notification } from 'antd';
import { getOneStopActiveMenus, getOnestopKey } from '../../Services';
import FormdataWrapper from './object-to-formdata-custom';
import { getCurrentUser, getToken } from '@/webPublic/one_stop_public/utils/token';
import urlTransform from '@/webPublic/zyd_public/request/urlTransform';
// import Md5 from './md5.min';
import Md5 from 'js-md5';
import { getUrlInfo } from '@/webPublic/one_stop_public/DetailForAudit/utils';
let messageTime = new Date().getTime() - 3000;
/**
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论