Commit 4397589f authored by wuwangwolihui's avatar wuwangwolihui

修改-本地预览-锚点长度10=>30

parent caa07b63
...@@ -303,7 +303,7 @@ ...@@ -303,7 +303,7 @@
valueArr.forEach((item, index) => { valueArr.forEach((item, index) => {
let father = document.getElementById(item).parentNode; let father = document.getElementById(item).parentNode;
let value = father.innerHTML.replace(/<(.*?)>/g, '').replace(/<\/(.*?)>/g, ''); let value = father.innerHTML.replace(/<(.*?)>/g, '').replace(/<\/(.*?)>/g, '');
if (value && value.length < 10) { if (value && value.length < 30) {
anchorList.push({ anchorList.push({
id: '#' + item, id: '#' + item,
name: value, name: value,
......
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