移除 vue-router URL 中的 # 号

This commit is contained in:
RockYang 2023-04-17 09:56:02 +08:00
parent 3a859a51fb
commit 5e0bfc778b

View File

@ -1,4 +1,4 @@
import {createRouter, createWebHashHistory} from 'vue-router'
import {createRouter, createWebHistory} from 'vue-router'
import {createApp} from 'vue'
import ElementPlus from "element-plus"
import "element-plus/dist/index.css"
@ -39,7 +39,7 @@ const routes = [
]
const router = createRouter({
history: createWebHashHistory(),
history: createWebHistory(),
routes: routes,
})