瀏覽代碼

update BlogQuestion.vue

reghao 3 月之前
父節點
當前提交
f38f0180cc
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/views/blog/BlogQuestion.vue

+ 1 - 1
src/views/blog/BlogQuestion.vue

@@ -145,7 +145,7 @@ export default {
       this.queryInfo.pn = parseInt(pageNumber)
     }
     const categoryId = this.$route.query.categoryId
-    if (categoryId !== undefined && categoryId !== null) {
+    if (categoryId !== undefined && categoryId !== '') {
       this.queryInfo.categoryId = parseInt(categoryId)
     }