Commit a82ab3f6 by lixinyi

更新

parent b83eaecf
<!DOCTYPE html>
<html lang="">
<head>
<meta charset="gb2312" />
<meta http-equiv=Content-Type content="text/html; charset=utf-8">
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<link rel="icon" href="<%= BASE_URL %>favicon.ico" />
......
......@@ -2,9 +2,14 @@
import axios from 'axios'
const service = axios.create({
baseURL: 'swift-editor/swift', //代理
baseURL: '/swift-editor-1.0.0/swift', //代理
timeout: 50000 // request timeout
})
axios.interceptors.response.use(response => {
response.headers['Content-Type'] = 'text/html; charset=utf-8';
return response;
})
export default service
\ No newline at end of file
const { defineConfig } = require("@vue/cli-service");
module.exports = defineConfig({
publicPath: "./",
transpileDependencies: true,
lintOnSave: false,
devServer: {
......@@ -12,6 +13,9 @@ module.exports = defineConfig({
target: 'http://127.0.0.1:8082',//设置要代理访问的接口---这是头条的接口
changeOrigin: true,
},
}
},
headers: {
'Content-Type': 'text/html; charset=utf-8',
},
}
});
package com.brilliance.mxeditor;
import org.springframework.boot.web.server.MimeMappings;
import org.springframework.boot.web.server.WebServerFactoryCustomizer;
import org.springframework.boot.web.servlet.server.ConfigurableServletWebServerFactory;
import org.springframework.context.annotation.Configuration;
@Configuration
public class HbbtvMimeMapping implements WebServerFactoryCustomizer<ConfigurableServletWebServerFactory> {
@Override
public void customize(ConfigurableServletWebServerFactory factory) {
MimeMappings mappings = new MimeMappings(MimeMappings.DEFAULT);
mappings.add("html","text/html;charset=utf-8");
factory.setMimeMappings(mappings);
}
}
<!doctype html><html lang=""><head><meta charset="gb2312"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="viewport" content="width=device-width,initial-scale=1"/><link rel="icon" href="/favicon.ico"/><title>ISO手工拟报</title><script defer="defer" src="/js/chunk-vendors.ed29fde2.js"></script><script defer="defer" src="/js/app.5e6c3c01.js"></script><link href="/css/chunk-vendors.ab49d789.css" rel="stylesheet"><link href="/css/app.c68f2234.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but swiftiso-editor doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html>
\ No newline at end of file
<!doctype html><html lang=""><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta charset="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="viewport" content="width=device-width,initial-scale=1"/><link rel="icon" href="favicon.ico"/><title>ISO手工拟报</title><script defer="defer" src="js/chunk-vendors.ed29fde2.js"></script><script defer="defer" src="js/app.73fde165.js"></script><link href="css/chunk-vendors.7c88cb4c.css" rel="stylesheet"><link href="css/app.c68f2234.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but swiftiso-editor doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment