获得徽章 8
lock文件丢失情况下,node14.19.1 umi "@ant-design/pro-components": "^2.6.8" 打包异常, 使用npm ls path-to-regexp查看到path-to-regexp版本不一致导致。
最终写死版本"@ant-design/pro-components": "2.7.1"可解决
评论
tailwindcss V4 的px配置方法
gogogoo于2025-05-07 17:15发布的图片
1
在vue2中this.$route.params与this.$route.query的区别:
this.$router.push({ path: '/user/123', query: { id: 456 } });
3
b.example.com中,
主机(Host):b.example.com
子域(Subdomain):b
主域(Domain):example.com
顶级域(TLD):.com
1
多次进行decodeURIComponent等操作会容易bug,做个标记
2
使用nvm安装node后没有npm的情况,试一下删除对应的node版本重装就有了。
3
提供一个axure原型在谷歌浏览器无法预览的简单解决方案:
在产品给你的原型图内,找到resources-chorme,将axure-chrome-extension.crx改成rar,解压后直接在拓展文件加载已解压文件夹,搞定。
评论
react中的ahooks太好用了,现在项目要转成vue,兄弟们有同款工具推荐吗?
2
set $group "default";
if ($http_cookie ~* "version=1.0"){
set $group version1.0_server;
}

if ($http_cookie ~* "version=2.0"){
set $group version2.0_server;
}

location /api {
rewrite ^/api/(.*)$ /$1 break;
proxy_pass http://$group;
}

location /static{
proxy_pass https://$group.com;
}

一套简单的灰度
展开
评论
nginx 内的listen 80; 跟Service的容器端口需对称
评论
针对antd的button组件disabled状态不显示Tooltip的解决办法:
const DisabledButtonWithTooltip = () => {
return (
<Tooltip title="This button is disabled">
<div style={{ display: 'inline-block' }}>
<Button disabled>Disabled Button</Button>
</div>
</Tooltip>
);
};
展开
评论
flexGrow: 1 无法与 table的放大直接匹配,需要修正下放大比例flexGrow: width / totalColumnsWidth
评论
UnoCSS 和 Tailwind CSS 20240731
评论
(0,eval)(this)
涉及逗号运算符, 间接调用,间接获取全局window
1
return cache[xxx] || cache[xxx] = await getXxx()
一个比较巧妙的写法
4
node多版本管理-mac
1.node --version
2.sudo npm cacje clean -f // 清缓存
3.sudo npm install n -g
4.sudo n stable/latest/16.17.0 //下载
5.sudo n //切换
展开
2
下一页
个人成就
文章被点赞 10
文章被阅读 5,587
掘力值 190
收藏集
13
关注标签
13
加入于