Commit 92b8ed70 by 冷斌

fix bug

parent 1aa236d9
......@@ -422,7 +422,7 @@
searchSave: function () {
let item = localStorage.getItem("search");
//['考研课程', '事业单位考试', '公务员考试'];
let data = item ? item : [];
let data = item.length > 0 ? item : [];
if (data.indexOf(this.keyword) < 0) {
data.push(this.keyword);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment