jump-and-jump
jump-and-jump
> > ``` > > const memoize = fn => > > new Proxy(fn, { > > cache: new Map(), > > apply(target, thisArg, argsList) { > > let cacheKey...
> 大佬已star 文章写得很不错啊,可以授权给公众号 深圳湾码农 转载吗?会注明作者及来源的,谢谢。 可以的
[proxy-www](https://github.com/justjavac/proxy-www) 写的妙啊 ``` const www = new Proxy(new URL('https://www'), { get: function get(target, prop) { let o = Reflect.get(target, prop); if (typeof o === 'function') { return o.bind(target) } if...
我也觉得名字起的不好,我第一次去提 pr 时候,差点跑到对方项目里面去提一个
我也遇到这个问题,这里需要配置 headScripts 项目。 代码如下所示: ```ts headScripts: [ // 解决首次加载时白屏的问题 { src: `${PUBLIC_PATH}${PUBLIC_PATH.endsWith('/') ? '' : '/'}scripts/loading.js`, async: true }, ], ``` 我这边觉得 ant-design-pro 不会解决这个问题,毕竟 headScripts 里面也可能去配置其他 cdn 的脚本等。所以可能需要你手动修改
修改此处的逻辑即可: ```js /** * 退出登录,并且将当前的 url 保存 */ const loginOut = async () => { await outLogin(); const { search, pathname } = window.location; const urlParams = new URL(window.location.href).searchParams; /**...
或者修改此处的逻辑,文件在 page/User/Login/index.tsx ```js const handleSubmit = async (values: API.LoginParams) => { try { // 登录 const msg = await login({ ...values, type }); if (msg.status === 'ok') { const defaultLoginSuccessMessage...
 This also happens on other pages