chore(cli): optimize code

This commit is contained in:
chenjiahan 2020-12-15 21:19:03 +08:00
parent 156fc4e470
commit 42ef4a685a

View File

@ -17,7 +17,6 @@
import VanDoc from './components'; import VanDoc from './components';
import { config } from 'site-desktop-shared'; import { config } from 'site-desktop-shared';
import { setLang } from '../common/locales'; import { setLang } from '../common/locales';
import { scrollToAnchor } from './utils';
export default { export default {
components: { components: {
@ -82,14 +81,6 @@ export default {
}, },
}, },
mounted() {
setTimeout(() => {
if (this.$route.query.anchor) {
scrollToAnchor(this.$route.query.anchor);
}
});
},
methods: { methods: {
setTitle() { setTitle() {
let { title } = this.config; let { title } = this.config;