mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
chore(cli): optimize code
This commit is contained in:
parent
156fc4e470
commit
42ef4a685a
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user