Casa Taloyum
Casa Taloyum
 
fix bug of issue #38
some mail from Tencent Post Master have header like "\r\r\n", which can not be parsed by go-message.
I am a newbie with golang, when I tried to write git related codes with go, I failed to clone repo with ssh url. The error is `ssh: handshake failed:...
If your app is version 0.1, and then you released version 0.2, and in version 0.2 you did modified the structure of database, so you have to migrate the old...
some times the owner of alertview should know when will and when did the alertview show or hide. so I added delegate methods to tell the outside controller about these...
### 问题的清晰而简明的描述 1. 当文件保存在阿里云OSS中时,需要下载文件的时候,需要向OSS获取一个下载URL,但这个下载URL会有有效时长限制。 2. 用户通过n-uploader上传文件之后,不见得就是会去立刻下载的。 所以用户如果要下载刚刚自己上传的文件的话,理论上可以采取两种方式: 方案1. 给每个文件都向OSS获取一个下载URL,然后把这个URL的有效期设置得非常长,例如1小时。 方案2. 每次点击下载按钮(n-uploader的file list自带的那个下载按钮)的时候,向OSS获取一次下载URL,然后下载。 方案1的问题在于: 1. 因为用户不见得每次都会下载自己上传的文件,因此给每个文件都申请一次OSS下载URL是多余的。 2. 把URL的有效期设置得非常长或者索性不设置有效期,那么就会导致文件下载URL滥用的问题,坏人可能会频繁下载文件,导致OSS费用上升。 所以认为方案2会更好。 ### 建议的解决方案 当前n-uploader有on-download方法: ```typescript async function handleDownload(params) { /* params is: {...
### 描述错误 文档需要补充一下这个内容: n-cascader如果要支持remote的话,需要在option中给到isLeaf = false 否则无法on-load函数是无法被调用的 ### 复现步骤 1. 设置n-cacscader为remote,且给到on-load函数 2. 设置n-cascader的option为: ```json [{label:"label", value:"value", children:[]}] ``` 3. 选择级联项目的时候,无法调用到on-load函数 我一开始是没有给到`children:[]`的,以为如果没有children的话,能够触发onLoad 结果打开的时候右边箭头也不展示了,无法打开下级页面。 后来我又想是不是因为我没给到children,触发onLoad的逻辑可能是判断children是否为空数组? 然后我尝试给到children:[],结果确实是打开下级页面了,但下级页面是空的,而且也不会调用到on-load函数。 然后我翻了一下源码,没翻出啥线索来: 后来我又仔细看了一下demo,发现option中有一个isLeaf,设置上isLeaf = false之后,on-load函数能够被调用了🤷♂️ 哦吼,因为这个问题,一下午没了🤷♂️ 我原本是以为如果children为undefined或者null时,就会触发onLoad函数的,后来以为children为[]时就会触发onLoad函数,没想到要isLeaf为false才会触发。...