mirror of
https://github.com/ElemeFE/element.git
synced 2025-12-16 11:44:01 +08:00
use hash
This commit is contained in:
@@ -81,6 +81,11 @@
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'app'
|
||||
name: 'app',
|
||||
created() {
|
||||
window.addEventListener('hashchange', () => {
|
||||
document.body.scrollTop = 0;
|
||||
});
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user