Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
T-miracle committed Jan 15, 2025
1 parent 0f1e828 commit e23a99a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions package/components/NanoMain/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@
// Listen for hash changes
const hashChange = () => {
// console.log('hashChange', location.hash);
if (location.hash) {
const _hashText = decodeURIComponent(location.hash.replace('#', ''));
// console.log('hashChange', hash.value);
if (hash.value) {
const _hashText = decodeURIComponent(hash.value.replace('#', ''));
emitter.emit('scroll-to-hash', _hashText);
}
};
Expand Down

0 comments on commit e23a99a

Please sign in to comment.