vue 3 + electron:无法加载资源:net::ERR_FILE_NOT_FOUND

acruukt9  于 2023-11-15  发布在  Electron
关注(0)|答案(1)|浏览(318)

我正在dist文件夹中构建一个vue项目。在dist/index.html文件中,我看到:

<script type="module" crossorigin src="/assets/index-45e10fce.js"></script>
    <link rel="stylesheet" href="/assets/index-c05fc592.css">

字符串
当我运行npm run electron:start时,我看到错误Failed to load resource: net::ERR_FILE_NOT_FOUNDwindow.location.href = file:///home/alex/logseq-PersonalNetwork/vue-personalNetwork/dist/index.html
如何在vue 3 +电子项目中修复资产寻址?

相关问题