Skip to content

Commit 0f5b7de

Browse files
committed
fix duoshuo shows when still loading
1 parent e1340b2 commit 0f5b7de

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
> 用无后台架构(backend-free)的Vue单页应用来分享、呈现你的leetcode解题源码吧!
44
5-
[线上Demo在此](https://ma63d.github.io/#/cover)
5+
[线上Demo在此](https://ma63d.github.io/leetcode-viewer)
66

77
只需要几行命令就可以立马搭建出一个完整的leetcode解题源码单页应用,完全无需后台,上传至github pages或你自己的服务器,即可一秒完整呈现你的leetcode源码.再结合多说等评论插件,**一个带搜索功能、带评论、带自己的解题心得、带源码、带leetcode题目的leetcode博客就这样搭建起来了,你,一行代码都不用写。**
88

src/components/Source.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<div class="posts tac loading-container" v-show="content == ''">
66
<pulse-out-loader :height="100" :width="10" :margin="5" style="display: inline-block"></pulse-out-loader>
77
</div>
8-
<duo-shuo v-if="enableDuoShuo && duoShuoRunning" :articleId="duoShuoArticleId" :articleTitle="duoShuoArticleTitle" :postId="postId"></duo-shuo>
8+
<duo-shuo v-if="enableDuoShuo && duoShuoRunning && content != ''" :articleId="duoShuoArticleId" :articleTitle="duoShuoArticleTitle" :postId="postId"></duo-shuo>
99
</div>
1010
</template>
1111
<style lang="stylus">

src/services/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* 封装get,post,delete请求 */
21
function checkStatus (response) {
32
if (response.status >= 200 && response.status < 300) {
43
return response

0 commit comments

Comments
 (0)