Browse Source

refactor: 修改路由为hash模式;因为Nginx配置不可行

master
wally 4 years ago
parent
commit
6666baef7a
  1. 4
      src/routers/index.js

4
src/routers/index.js

@ -1,4 +1,4 @@
import { createRouter, createWebHistory } from 'vue-router';
import { createRouter, createWebHashHistory } from 'vue-router';
// 还有 createWebHashHistory 和 createMemoryHistory
export const routes = [
@ -8,7 +8,7 @@ export const routes = [
];
const router = createRouter({
history: createWebHistory(),
history: createWebHashHistory(),
routes: [
{
path: '/',

Loading…
Cancel
Save