Browse Source

style: 细节调整

apply
wally 4 years ago
parent
commit
1ec9334d34
  1. 4
      pages/index.vue

4
pages/index.vue

@ -60,11 +60,11 @@ import { ref, onMounted, nextTick } from 'vue';
const active = ref(0);
onMounted(async () => {
scrollToHashElement();
scrollToElementByHash();
});
// hash
async function scrollToHashElement() {
async function scrollToElementByHash() {
await nextTick();
const hash = window.location.hash;
if (!hash) return;

Loading…
Cancel
Save