Compare commits

..

No commits in common. "ba4a0760bbef8da0fca2bd305ca2b7ab272d67ef" and "7f38a0d9881b4dc883a9028ced0562bd05e3321d" have entirely different histories.

5 changed files with 1 additions and 27 deletions

View File

@ -17,24 +17,6 @@ export default {
return this.$route.name;
},
},
mounted() {
const anchors = [].slice.call(this.$el.querySelectorAll('h2, h3, h4, h5'));
anchors.forEach((anchor) => {
anchor.addEventListener('click', this.scrollToAnchor);
});
},
methods: {
scrollToAnchor(event) {
if (event.target.id) {
this.$router.push({
name: this.$route.name,
hash: '#' + event.target.id,
});
}
},
},
};
</script>

View File

@ -1,6 +0,0 @@
{
"extends": "../tsconfig.json",
"compilerOptions": {
"allowJs": true
}
}

View File

@ -9,5 +9,5 @@
"esModuleInterop": true,
"lib": ["esnext", "dom"]
},
"include": ["src/**/*"]
"include": ["src/**/*", "site"]
}

View File

@ -78,8 +78,6 @@
background-color: transparent;
border: 0;
resize: none;
// https://github.com/youzan/vant/pull/9418
user-select: auto;
&::placeholder {
color: var(--van-field-placeholder-text-color);