1.将项目目录下config文件内index.js中build的assetsPublicPath修改为 assetsPublicPath: './'
2.路由模式 带#为hash 不带为history
export default new Router({
base: '/',
mode: 'hash',
routes: routeArr
3.运行-项目目录-npm run build生成dist文件夹
4.在HBuilder中创建新的App项目,复制dist文件夹下内容到新项目中,或指定dist文件夹为新项目
5.用真机运行测试
6.打包App
网友评论