mirror of
https://github.com/youzan/vant.git
synced 2025-10-17 00:14:18 +00:00
chore(cli): optimize code
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user