honjun / hexo-theme-sakura

684 stars 211 forks source link

搜索的js报错 #49

Open dizent opened 4 years ago

dizent commented 4 years ago

在配置搜索之后,点击搜索发现控制台的js有报错。 image

看了代码的上下文,发现是文章数据采集过来时,是一个文章列表的数组,但是js中的json参数是一个map。想请教一下,这个问题如何解决。下面是我博客中安装的插件。

image

dizent commented 4 years ago

"dependencies": { "cheerio": "^1.0.0-rc.3", "hexo": "^4.2.0", "hexo-admin": "^2.3.0", "hexo-deployer-git": "^2.1.0", "hexo-douban": "^1.1.3", "hexo-generator-archive": "^1.0.0", "hexo-generator-category": "^1.0.0", "hexo-generator-feed": "^2.2.0", "hexo-generator-index": "^1.0.0", "hexo-generator-json-content": "^4.2.3", "hexo-generator-tag": "^1.0.0", "hexo-helper-live2d": "^3.1.1", "hexo-renderer-ejs": "^1.0.0", "hexo-renderer-jade": "^0.5.0", "hexo-renderer-kramed": "^0.1.4", "hexo-renderer-marked": "^0.3.2", "hexo-renderer-stylus": "^1.1.0", "hexo-server": "^1.0.0", "hexo-tag-aplayer": "^3.0.4", "hexo-tag-bili": "^1.0.0", "hexo-tag-fancybox_img": "^1.0.1", "hexo-wordcount": "^6.0.1", "live2d-widget-model-tororo": "^1.0.5" }