Skip to content

Commit e23a99a

Browse files
committed
Fix build
1 parent 0f1e828 commit e23a99a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

package/components/NanoMain/index.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@
7171
7272
// Listen for hash changes
7373
const hashChange = () => {
74-
// console.log('hashChange', location.hash);
75-
if (location.hash) {
76-
const _hashText = decodeURIComponent(location.hash.replace('#', ''));
74+
// console.log('hashChange', hash.value);
75+
if (hash.value) {
76+
const _hashText = decodeURIComponent(hash.value.replace('#', ''));
7777
emitter.emit('scroll-to-hash', _hashText);
7878
}
7979
};

0 commit comments

Comments
 (0)