Vue访问端口,url自动补#

‘#‘’是VUE的HASH模式所产生的,正确点来说是因为VUE使用了HASH模式
去除#办法

import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  mode: 'history'  //把Router的mode修改为history模式,VueRouter默认的模式为HASH模式
})

你可能感兴趣的:(Vue访问端口,url自动补#)