Skip to content

Commit

Permalink
[change] : hash mode -> history mode
Browse files Browse the repository at this point in the history
  • Loading branch information
mirumirumi committed Jan 10, 2022
1 parent edc68db commit 17632cb
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions src/router/index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
// "@vue/cli-plugin-eslint": "~4.5.0",
// "@vue/eslint-config-prettier": "^6.0.0",
// "babel-eslint": "^10.1.0",
// "eslint": "^6.7.2",
// "eslint-plugin-prettier": "^3.3.1",
// "eslint-plugin-vue": "^7.0.0",

import {createRouter, createWebHashHistory} from "vue-router";
import {createRouter, createWebHistory} from "vue-router";
import Home from "../views/Home.vue";
import Terms from "../views/Terms.vue";
import Privacy from "../views/Privacy.vue";
Expand Down Expand Up @@ -38,9 +31,9 @@ const routes = [
];

const router = createRouter({
history: createWebHashHistory(),
routes,
});
history: createWebHistory(process.env.BASE_URL),
routes
})

router.afterEach((to, from) => {
document.title = to.meta.title;
Expand Down

0 comments on commit 17632cb

Please sign in to comment.