vue-element-admin 如何打包后直接点击index.html运行

用了vue-element-admin 打包后直接运行index.html 发现引用的css js等路径是错误的

正常vue项目是要修改 config文件夹下的index.js 可是vue-element-admin项目没有这个文件

我又尝试直接修改打包后的index.html文件 吧/static 改为 ./stacic

clipboard.png
改为
clipboard.png
但这样打开index.html后会不知道为什么会直接进入c盘目录

clipboard.png

请问应该如何修改可以本地直接打开index.html运行呀

阅读 7.6k
1 个回答

本地开个服务器放在里面 你现在file协议 或者把assetsPublicPath:""