作者:GXtingker | 来源:互联网 | 2023-10-14 19:59
用了vue-element-admin打包后直接运行index.html发现引用的cssjs等路径是错误的正常vue项目是要修改config文件夹下的index.js可
用了vue-element-admin 打包后直接运行index.html 发现引用的css js等路径是错误的
正常vue项目是要修改 config文件夹下的index.js 可是vue-element-admin项目没有这个文件
我又尝试直接修改打包后的index.html文件 吧/static 改为 ./stacic

改为

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

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