Files
ZangShiQi/addon/pc/source/os/plugins/route.js
2026-04-04 17:27:12 +08:00

9 lines
153 B
JavaScript
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// plugins/route.js文件
export default ({
app,
redirect
}) => {
app.router.afterEach((to, from) => {
window.scrollTo(0, 0);
})
}