vue添加项目路径需要改两个地方:
1.配置【publicPath】。

module.exports = {
  publicPath: '/yanggb'
}

2.配置Router的【base】属性。

new Router({
  base: '/yanggb'
})