Closed jingyu9575 closed 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: [ ... ], })
Already fixed in version 3.0.3, thanks.
安装扩展V3.0后,打开任意网址,后面会自动加上 #/ 符号。火狐和Chrome都有这个问题。 这似乎和 vue-router 有关。如果切换到 history mode,就不会改变网址,但按钮的弹出页面会出错。
目前我是这样解决的:Edit: 这个方法与使用history.pushState的网站(如GitHub)冲突。