mirror of
https://github.com/youzan/vant.git
synced 2025-10-16 08:00:34 +00:00
chore(cli): optimize code
This commit is contained in:
@@ -17,7 +17,6 @@
|
||||
import VanDoc from './components';
|
||||
import { config } from 'site-desktop-shared';
|
||||
import { setLang } from '../common/locales';
|
||||
import { scrollToAnchor } from './utils';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
@@ -82,14 +81,6 @@ export default {
|
||||
},
|
||||
},
|
||||
|
||||
mounted() {
|
||||
setTimeout(() => {
|
||||
if (this.$route.query.anchor) {
|
||||
scrollToAnchor(this.$route.query.anchor);
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
methods: {
|
||||
setTitle() {
|
||||
let { title } = this.config;
|
||||
|
Reference in New Issue
Block a user