" to solve the garbled problem."/> " to solve the garbled problem.">

Home  >  Article  >  Web Front-end  >  What to do if vue project deployment is garbled

What to do if vue project deployment is garbled

藏色散人
藏色散人Original
2022-12-30 16:05:404109browse

Solution to garbled code in vue project deployment: 1. Execute the "npm run build" command; 2. Add the content "" to solve the garbled problem.

What to do if vue project deployment is garbled

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"%>

What to do if vue project deployment is garbled

##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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn