美文网首页
cordova+vue打包后空白问题

cordova+vue打包后空白问题

作者: 逆行世界 | 来源:发表于2018-09-29 16:57 被阅读0次

检查Vue项目

  1. 检查Config目录中index.js文件build的配置,参照一下配置
    // Template for index.html
    index: path.resolve(__dirname, '../dist/index.html'),

    // Paths
    assetsRoot: path.resolve(__dirname, '../dist'),
    assetsSubDirectory: '',
    assetsPublicPath: '',
  1. 更改Router路由的模式
const router = new VueRouter({
  mode: 'hash',
  routes: [...]
})

相关文章

网友评论

      本文标题:cordova+vue打包后空白问题

      本文链接:https://www.haomeiwen.com/subject/jmdboftx.html