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); const active = ref(0);
onMounted(async () => { onMounted(async () => {
scrollToHashElement(); scrollToElementByHash();
}); });
// hash // hash
async function scrollToHashElement() { async function scrollToElementByHash() {
await nextTick(); await nextTick();
const hash = window.location.hash; const hash = window.location.hash;
if (!hash) return; if (!hash) return;

Loading…
Cancel
Save