" to solve the garbled problem."/> " to solve the garbled problem.">
Home >Web Front-end >Front-end Q&A >What to do if vue project deployment is garbled
Solution to garbled code in vue project deployment: 1. Execute the "npm run build" command; 2. Add the content "" to solve the garbled problem.
The operating environment of this tutorial: Windows 10 system, Vue version 3, Dell G3 computer.
What should I do if the vue project deployment is garbled?
Solution to Chinese garbled characters after vue project packaging and deployment
Project framework:
springmvc vue
vue project local debugging OK, after npm run build, put it in the webinfo directory of the springmvc project, and access it again, Chinese garbled characters appear.
Solution:
After npm run build, add the following content to index.html
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>##Recommended learning :《
vue.js video tutorial》
The above is the detailed content of What to do if vue project deployment is garbled. For more information, please follow other related articles on the PHP Chinese website!