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

登录逻辑修改

上级 3d1b5c09
......@@ -837,7 +837,7 @@ export default class ZdyTable extends Component {
<table
style={{
overflow: 'auto',
margin: max * width > 550 ? 'auto' : '',
margin: max * width > 550 ? '1px auto' : '',
marginBottom: isWebPrint ? (isWebPrintEnd ? '5px' : 0) : '1px',
...style,
}}
......
......@@ -3,9 +3,11 @@
* */
import { isJSON } from '@/webPublic/one_stop_public/copy';
import { getOneStopMyInfo } from '@/webPublic/one_stop_public/utils/utils';
import { setCookie } from '@/webPublic/one_stop_public/utils/cookie';
export function setToken(value, time) {
if (getToken() !== value) {
setCookie('token', value);
localStorage.setItem('antd-pro-token-onestop', value);
localStorage.setItem('antd-pro-token', value);
localStorage.setItem('wisdom-school-token', value);
......
......@@ -148,8 +148,8 @@ export default function request(
}
const defaultOptions = {
credentials: 'omit',
// credentials: 'include',
// credentials: 'omit',
credentials: 'include',
mode: 'cors',
};
let newOptions = { ...defaultOptions, ...options };
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论