vueファイルをパッケージしてindexを開きます.html空白を見つけた

210 ワード

理由:パッケージング後のファイルロードリソースのパスが間違っています
解決策:
vueでconfig.jsファイルでのパスの変更
module.exports = {
 publicPath: './'
}

もしrouter/index.jsファイルにmode:'history'があれば削除または注釈すればよい