first commit
This commit is contained in:
commit
6adcb5b43d
258 files changed
+143145
No files matched your search
@@ -0,0 +1,17 @@
|
||||
import VueRouter from "vue-router";
|
||||
import routes from "./routes";
|
||||
|
||||
// configure router
|
||||
const router = new VueRouter({
|
||||
routes, // short for routes: routes
|
||||
linkExactActiveClass: "active",
|
||||
scrollBehavior: (to) => {
|
||||
if (to.hash) {
|
||||
return {selector: to.hash}
|
||||
} else {
|
||||
return { x: 0, y: 0 }
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
export default router;
|
||||
Reference in new issue
Block a user