404 static file loading after vue deployment

Vue deployment problem:

1. 404 is reported when js and css static files are loaded

Solution: In build-->index.vue, assetsPublicPath:'/' is added here in front of "."

2. Element icon background 404

Solution:

 

Guess you like

Origin blog.csdn.net/huangge1199/article/details/104453024