修改前效果

想要去掉/# 如何实现?
1、typeScript中去掉url中#
找到项目中的router/index.ts-----------去掉createWebHashHistory中的Hash
将createWebHashHistory修改为createWebHistory


2、javaScript中去掉url中#
找到项目中的router/index.js-----------添加mode: 'history',

简单用法:
export default new Router({
mode: 'history',
routes: [
{
path: '/',
name: 'IndexPage',
component: IndexPage
}
]
})
修改后效果:







![[YOLOv8] 用YOLOv8实现指针式圆形仪表智能读数(三)](https://img-blog.csdnimg.cn/direct/b34ffab5de594b65bea399b5aec80191.png)


![【Pip】pip 安装第三方包异常:[SSL:CERTIFICATE_VERIFY_FAILED]解决方案](https://img-blog.csdnimg.cn/direct/a86a587fb65842c3a078c4dd54938aed.jpeg)









