magic-FE / translate-man

An excellent google translation plug-in, you will love it
MIT License
276 stars 40 forks source link

V3.0 会在网址后加 #/ 符号 #32

Closed jingyu9575 closed 6 years ago

jingyu9575 commented 6 years ago

安装扩展V3.0后,打开任意网址,后面会自动加上 #/ 符号。火狐和Chrome都有这个问题。 这似乎和 vue-router 有关。如果切换到 history mode,就不会改变网址,但按钮的弹出页面会出错。

目前我是这样解决的: Edit: 这个方法与使用history.pushState的网站(如GitHub)冲突。

export default new VueRouter({
  mode: location.protocol === 'moz-extension:' ? undefined : 'history',
  routes: [
    ...
  ],
})

default default

cloudfroster commented 6 years ago

Already fixed in version 3.0.3, thanks.