|
@@ -132,13 +132,13 @@ const routes = [
|
|
|
]
|
|
|
const router = createRouter({
|
|
|
// history: createWebHistory(import.meta.env.BASE_URL),
|
|
|
- history: createWebHistory("/fireBrigadeUser/"),
|
|
|
+ history: createWebHistory("/fireBrigade/"),
|
|
|
//highLevelIntellectual
|
|
|
// history: createWebHistory('/pc/'),
|
|
|
routes
|
|
|
})
|
|
|
//页面滚动到最顶部
|
|
|
-router.beforeEach((to, from, next) => {
|
|
|
+router.beforeEach((to: { meta: { title: any } }, from: any, next: () => void) => {
|
|
|
window.scrollTo(0, 0);
|
|
|
/** meta是定义路由时路由的属性 */
|
|
|
if (to.meta.title) {
|