Skip to content

Commit

Permalink
feat: 路由换成hash模式
Browse files Browse the repository at this point in the history
  • Loading branch information
啊啊啊锋子阿 committed Feb 18, 2023
1 parent 4ed1e31 commit 4a838b7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/router/index.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import { createRouter, createWebHistory } from 'vue-router'
import { createRouter, createWebHashHistory } from 'vue-router'

import Layout from '../views/Layout.vue'
console.log('reouter')

const router = createRouter({
// @ts-ignore
history: createWebHistory(import.meta.env.BASE_URL),
history: createWebHashHistory(),
routes: [
{
path: '/',
Expand Down

0 comments on commit 4a838b7

Please sign in to comment.