This commit is contained in:
zhigang.li 2018-06-29 18:13:33 +08:00
parent 2c68755aa5
commit 9d553a2b81

View file

@ -11,7 +11,7 @@
</component> </component>
</template> </template>
<script> <script>
import { scrollTop, findComponentDownward, findComponentsDownward, sharpMatcherRegx } from '../../utils/assist'; import { scrollTop, findComponentsDownward, sharpMatcherRegx } from '../../utils/assist';
import { on, off } from '../../utils/dom'; import { on, off } from '../../utils/dom';
export default { export default {
name: 'Anchor', name: 'Anchor',
@ -171,7 +171,7 @@ export default {
this.handleHashChange(); this.handleHashChange();
this.$nextTick(() => { this.$nextTick(() => {
this.handleScrollTo(); this.handleScrollTo();
}) });
}, },
container () { container () {
this.init(); this.init();