We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f1e828 commit e23a99aCopy full SHA for e23a99a
package/components/NanoMain/index.vue
@@ -71,9 +71,9 @@
71
72
// Listen for hash changes
73
const hashChange = () => {
74
- // console.log('hashChange', location.hash);
75
- if (location.hash) {
76
- const _hashText = decodeURIComponent(location.hash.replace('#', ''));
+ // console.log('hashChange', hash.value);
+ if (hash.value) {
+ const _hashText = decodeURIComponent(hash.value.replace('#', ''));
77
emitter.emit('scroll-to-hash', _hashText);
78
}
79
};
0 commit comments