脚手架4.46的怎么将hash模式改成history模式?

vue里面 将hash模式变成history模式是不是在router/index.js
里面加上mode:'history',这么一段代码,但是我加上去了并没有成功改变模式#号还是存在,我使用的脚手架是4.46的不知道还要做什么改动才能进到history模式?

脚手架4修改方式已经改变了

将import {createRouter, createWebHahHistory} from 'vue-router'改为
import {createRouter, createWebHistory} from 'vue-router',然后再使用
const router = createRouter({
    history: createWebHistory(),
    routes,
})

https://blog.csdn.net/u010289111/article/details/79315407/