🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
# vue 路由hash改成history > 只需要你在 定义路由的时候 增加mode:history即可 ``` <pre class="calibre14">``` <span class="token2">const</span> router <span class="token">=</span> <span class="token2">new</span> <span class="token3">VueRouter</span><span class="token1">(</span><span class="token1">{</span> routes<span class="token1">,</span> mode<span class="token1">:</span> <span class="token4">'history'</span> <span class="token1">}</span><span class="token1">)</span> ``` ```