How does vue.js support changing theme pictures online?

The theme background image of the

page is placed in the static folder, and its name will be changed when it is packaged. Login-bg.jpg is changed to login-bg.814d480.jpg (random name). The production environment is integrated and run in the django backend, so it will be extracted to the global static folder by the collectstatic of django. Now it is necessary to change the background image on the web page. How should the image uploaded by the user replace the original one? It is best to use it in both npm run dev and production environments.

Mar.16,2021

require? in data

Menu