What to do if vue project deployment is garbled

藏色散人
Release: 2022-12-30 16:05:40
Original
4004 people have browsed it

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"%>
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!