路由哈希模式更换为历史模式 步骤 将路由替换为history模式 更换配置文件中配置的根路径 查找项目中存在的哈希跳转 步骤 将路由替换为history模式 更换配置文件中配置的根路径 查找项目中存在的哈希跳转 将路由替换为history模式 import { createRouter, createWebHistory, } from 'vue-router' const router = createRouter({ history: createWebHistory(),