1.0.0 • Published 4 years ago
@aligov/url-encode v1.0.0
重定向url拼接
当后端返回重定向的url时,需要使用该方法来encode当前url中的参数。
import { urlSplice } from "@aligov/gov-login";
request('xxxx').then(redirect_url => {
const url = urlSplice(redirect_url);
// 跳转
location.href = url;
})