fix:I2CG72 wiki文档搜索时忽略大小写

This commit is contained in:
暮光:城中城
2021-01-09 18:25:41 +08:00
parent e66586c765
commit 0f72acc973
23 changed files with 19 additions and 15 deletions

View File

@@ -319,8 +319,10 @@
this.loadUserMessageList();
},
filterPageNode(value, data) {
if (!value) return true;
return data.name.indexOf(value) !== -1;
if (!value || !data.name) return true;
// issues:I2CG72 忽略大小写
let name = data.name.toLowerCase();
return name.indexOf(value.toLowerCase()) !== -1;
},
showOpenSpace(space) {
let routeUrl = this.$router.resolve({path: '/page/share/home', query: {space: space}});

View File

@@ -55,8 +55,10 @@
},
methods: {
filterPageNode(value, data) {
if (!value) return true;
return data.name.indexOf(value) !== -1;
if (!value || !data.name) return true;
// issues:I2CG72 忽略大小写
let name = data.name.toLowerCase();
return name.indexOf(value.toLowerCase()) !== -1;
},
handleNodeClick(data) {
if (this.nowPageId == data.id) {