前后端分离项目:
const singleLogin = async () => {
const currentUrl = window.location.href;
const url = SINGLE_LOGIN;
if (currentUrl.indexOf('code') == -1) {
window.location.href = url;
}
};
const gotoIndex = async (code: string) => {
setSubmitting(true)