<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[tree_ge的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/tree_ge</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; tree_ge]]></copyright><item><title><![CDATA[ant-design-pro路由缓存]]></title><link>https://blog.youkuaiyun.com/tree_ge/article/details/155936160</link><guid>https://blog.youkuaiyun.com/tree_ge/article/details/155936160</guid><author>tree_ge</author><pubDate>Mon, 15 Dec 2025 11:29:48 +0800</pubDate><description><![CDATA[saveScrollPosition="screen" // 可以记住页面的滚动位置,切换页面是回到上一次滚动的位置,可以设置为false。when={true} //组件卸载后缓存(离开页面时缓存)可以传入Boolean,array,function。.pathname} // 缓存多个页面时要有id。.pathname} // 页面的path地址。2.在childrenRender中配置（红框中是不需要加入缓存的路由数据）]]></description><category></category></item><item><title><![CDATA[微信小程序：errMsg: “request:fail url not in domain list“errno: 600002]]></title><link>https://blog.youkuaiyun.com/tree_ge/article/details/150349054</link><guid>https://blog.youkuaiyun.com/tree_ge/article/details/150349054</guid><author>tree_ge</author><pubDate>Thu, 14 Aug 2025 18:53:17 +0800</pubDate><description><![CDATA[2.微信小程序公众平台，服务器域名没配置，或配置的和代码中有出入（检查是不是符号空格之类不一致）1.本地调试时，开发者工具勾选了，不校验域名、web-view、TLS版本、https证书。开发环境取消勾选不校验域名、web-view、TLS版本、https证书，开发正常。看看是否新增了web-view，是不是新增了web-view没有配置。2.体验版打开开发者调试工具，正常调试。新增web-view需要配置业务域名。3.部署后连接不上接口，直接报错。微信小程序公众平台也配置了域名。1.本地开发正常调试。]]></description><category></category></item><item><title><![CDATA[微信小程序，wx.chooseImage，报error:112错误]]></title><link>https://blog.youkuaiyun.com/tree_ge/article/details/149801691</link><guid>https://blog.youkuaiyun.com/tree_ge/article/details/149801691</guid><author>tree_ge</author><pubDate>Thu, 31 Jul 2025 11:38:26 +0800</pubDate><description><![CDATA[看看是否勾选 “摄像头” 和 “选中照片或视频...”，勾选后审核。3.审核完成，清缓存重新执行,就ok啦啦啦啦啦。看看开发者处理的信息。]]></description><category></category></item><item><title><![CDATA[微信小程序自定义隐私协议弹窗]]></title><link>https://blog.youkuaiyun.com/tree_ge/article/details/149716853</link><guid>https://blog.youkuaiyun.com/tree_ge/article/details/149716853</guid><author>tree_ge</author><pubDate>Mon, 28 Jul 2025 17:29:04 +0800</pubDate><description><![CDATA[本文介绍了如何在小程序中实现自定义隐私协议弹窗，以替代微信官方弹窗。主要内容包括： 开发自定义弹窗组件，包含同意/拒绝按钮和协议详情链接。关键点在于： 使用openType=&quot;agreePrivacyAuthorization&quot;绑定同意按钮 提供退出小程序功能 支持首次和更新两种场景的提示文案 通过wx.getPrivacySettingAPI判断是否需要展示弹窗 在&quot;我的&quot;页面首次加载时检查授权状态 当needAuthorization为true时显示自定义弹窗 样]]></description><category></category></item><item><title><![CDATA[antd,antdPro,表格数据为空时，表格宽度无限放大]]></title><link>https://blog.youkuaiyun.com/tree_ge/article/details/146983425</link><guid>https://blog.youkuaiyun.com/tree_ge/article/details/146983425</guid><author>tree_ge</author><pubDate>Thu, 03 Apr 2025 16:12:22 +0800</pubDate><description><![CDATA[2.宽度需要自适应，表格宽度受分辨率宽度等影响：加个父元素,给父元素宽度为width:99.9%（1.宽度固定：加个父元素，给父元素个固定宽度。如：width:500px;父元素宽度100%宽度还是无限放大，但是99.9%就可以）]]></description><category></category></item><item><title><![CDATA[antd-pro部署后出现首次登录进入白屏]]></title><link>https://blog.youkuaiyun.com/tree_ge/article/details/142547933</link><guid>https://blog.youkuaiyun.com/tree_ge/article/details/142547933</guid><author>tree_ge</author><pubDate>Thu, 26 Sep 2024 09:59:22 +0800</pubDate><description><![CDATA[发现这个问题的项目package.js（新版本antd-pro没发现问题）解决：在config下condig.ts中改下路由配置为hash。打开控制台，看到个umi的报错。]]></description><category></category></item><item><title><![CDATA[如何把antd 表格多选框移到右边]]></title><link>https://blog.youkuaiyun.com/tree_ge/article/details/135481696</link><guid>https://blog.youkuaiyun.com/tree_ge/article/details/135481696</guid><author>tree_ge</author><pubDate>Tue, 09 Jan 2024 15:38:35 +0800</pubDate><description><![CDATA[1.看了下文档，配置了rowSelection 的 fixed: 'right'。:global 包裹antd样式才会生效。z-index添加优先级才不会被其他动作覆盖。3.项目中表格隔行加了背景色，发现左边多了一块。重新赋值背景色给td,就不会出现左侧多出一块。2.思路：每行加定位，给选择框定位到右边。]]></description><category></category></item><item><title><![CDATA[如何封装个video插件。自定义进度条点击拖拽，播放暂停，播放倍速]]></title><link>https://blog.youkuaiyun.com/tree_ge/article/details/135008739</link><guid>https://blog.youkuaiyun.com/tree_ge/article/details/135008739</guid><author>tree_ge</author><pubDate>Fri, 15 Dec 2023 10:40:47 +0800</pubDate><description><![CDATA[vue3开发嵌入式，播放器在浏览器中是正常的。但嵌入到app里，app不适配，无法全屏，无法设置倍速，controls在视频播放时点击视频无法弹出。]]></description><category></category></item><item><title><![CDATA[Cannot read property ‘setupContext‘ of null]]></title><link>https://blog.youkuaiyun.com/tree_ge/article/details/132413772</link><guid>https://blog.youkuaiyun.com/tree_ge/article/details/132413772</guid><author>tree_ge</author><pubDate>Mon, 21 Aug 2023 18:03:58 +0800</pubDate><description><![CDATA[1.比较了下package.json版本,发现报错项目版本vue包为"vue": "^3.2.24"，新项目版本vue包为"vue": "^3.2.45"，升级版本吧。2.给跑不起来的项目package.json里，"vue": "^3.2.24"改为"vue": "^3.2.45"，以为是vue3-video-play包的问题，找了挺久没发现问题，重新起个新项目发现可以正常使用。3.删除node-modules包，重新npm i 下包。4.重启项目就ok了。]]></description><category></category></item><item><title><![CDATA[antd upload 清除上传默认请求静态资源]]></title><link>https://blog.youkuaiyun.com/tree_ge/article/details/131901589</link><guid>https://blog.youkuaiyun.com/tree_ge/article/details/131901589</guid><author>tree_ge</author><pubDate>Mon, 24 Jul 2023 18:00:24 +0800</pubDate><description><![CDATA[原因：因为上传默认会进行一次静态资源请求，请求是post。ng配置会阻止post请求静态资源，所以会报错。1.通过 beforeUpload 去阻止自动上传，进行手动上传。2.onchange里判断需要进行些修改（比如监听不到状态了）解决思路：去掉antd upload 默认请求静态资源。问题：antd上传本地运行没毛病，线上报错405。]]></description><category></category></item><item><title><![CDATA[vue-audio-player使用和播放器改造]]></title><link>https://blog.youkuaiyun.com/tree_ge/article/details/129544710</link><guid>https://blog.youkuaiyun.com/tree_ge/article/details/129544710</guid><author>tree_ge</author><pubDate>Wed, 15 Mar 2023 09:21:49 +0800</pubDate><description><![CDATA[vue-audio-player使用和播放器改造]]></description><category></category></item><item><title><![CDATA[vue3加富文本编辑器使用与坑]]></title><link>https://blog.youkuaiyun.com/tree_ge/article/details/129316450</link><guid>https://blog.youkuaiyun.com/tree_ge/article/details/129316450</guid><author>tree_ge</author><pubDate>Fri, 03 Mar 2023 11:20:41 +0800</pubDate><description><![CDATA[vue3富文本编辑器的使用，无法正常输入，点击输入没反应]]></description><category></category></item><item><title><![CDATA[vue+vant移动端真机测试页面放大]]></title><link>https://blog.youkuaiyun.com/tree_ge/article/details/128717427</link><guid>https://blog.youkuaiyun.com/tree_ge/article/details/128717427</guid><author>tree_ge</author><pubDate>Tue, 17 Jan 2023 16:03:19 +0800</pubDate><description><![CDATA[移动端点击输入框页面放大]]></description><category></category></item><item><title><![CDATA[antd input类型为password时，怎么取消浏览器调取密码提示？]]></title><link>https://blog.youkuaiyun.com/tree_ge/article/details/127449684</link><guid>https://blog.youkuaiyun.com/tree_ge/article/details/127449684</guid><author>tree_ge</author><pubDate>Fri, 21 Oct 2022 16:53:57 +0800</pubDate><description><![CDATA[antd input类型为password时，怎么取消浏览器调取密码提示？]]></description><category></category></item><item><title><![CDATA[antd tree组件自定义图标]]></title><link>https://blog.youkuaiyun.com/tree_ge/article/details/127428292</link><guid>https://blog.youkuaiyun.com/tree_ge/article/details/127428292</guid><author>tree_ge</author><pubDate>Thu, 20 Oct 2022 15:32:53 +0800</pubDate><description><![CDATA[antd tree自定义图标]]></description><category></category></item><item><title><![CDATA[ant design pro动态路由]]></title><link>https://blog.youkuaiyun.com/tree_ge/article/details/127425088</link><guid>https://blog.youkuaiyun.com/tree_ge/article/details/127425088</guid><author>tree_ge</author><pubDate>Thu, 20 Oct 2022 14:42:03 +0800</pubDate><description><![CDATA[ant design pro]]></description><category></category></item></channel></rss>