Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

图片上传过程中好像会卡住 #10

Open
lukan217 opened this issue Dec 30, 2019 · 2 comments
Open

图片上传过程中好像会卡住 #10

lukan217 opened this issue Dec 30, 2019 · 2 comments

Comments

@lukan217
Copy link

有时候就卡住一小会,有时候卡了很久,btw,我用的是github上传,这是正常现象吗?有没有什么好的解决方法呢

@Thobian
Copy link
Owner

Thobian commented Dec 30, 2019

这个应该是跟你网络有关系,墙的存在可能出现这种情况,如果你有稳定的VPN可以打开试试

@Byzero512
Copy link

有时候就卡住一小会,有时候卡了很久,btw,我用的是github上传,这是正常现象吗?有没有什么好的解决方法呢

把xmlhttprequest换成异步即可

// upload.js
            $.ajax({
......
                url: "https://api.github.com/repos/" + setting.github.Repository + "/contents/" + filename,
                async: true,
....

那个async本来是false, 换成true.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants