健壮性增强
This commit is contained in:
@@ -42,9 +42,9 @@ public class FastApplication extends SpringBootServletInitializer {
|
|||||||
if (StringUtils.isNoneBlank(vuePath, ctxPath)) {
|
if (StringUtils.isNoneBlank(vuePath, ctxPath)) {
|
||||||
logger.info(
|
logger.info(
|
||||||
"\r\n\r\n==============================================================\r\n"
|
"\r\n\r\n==============================================================\r\n"
|
||||||
+ "\r\n 存在此提示:因为您修改了 server.servlet.context-path 参数,需要您"
|
+ "\r\n 提示:您修改了 server.servlet.context-path 参数,需要您"
|
||||||
+ "\r\n 同步修改 jeesite-vue/.env.tomcat 中的 VITE_PUBLIC_PATH 并重新打包 "
|
+ "\r\n 同步修改 _app.config.js 中的 VITE_GLOB_API_URL_PREFIX 参数 "
|
||||||
+ "\r\n 如:context-path: " + ctxPath +" 即对应为 VITE_PUBLIC_PATH = " + ctxPath + vuePath
|
+ "\r\n 请修改为 VITE_GLOB_API_URL_PREFIX=\"" + ctxPath + "\""
|
||||||
+ "\r\n\r\n==============================================================\r\n");
|
+ "\r\n\r\n==============================================================\r\n");
|
||||||
}
|
}
|
||||||
logger.info(
|
logger.info(
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ server:
|
|||||||
servlet:
|
servlet:
|
||||||
context-path: ~
|
context-path: ~
|
||||||
register-default-servlet: false
|
register-default-servlet: false
|
||||||
|
# encoding.enabled: true
|
||||||
tomcat:
|
tomcat:
|
||||||
uri-encoding: UTF-8
|
uri-encoding: UTF-8
|
||||||
# 表单请求数据的最大大小
|
# 表单请求数据的最大大小
|
||||||
|
|||||||
2
web-fast/src/main/resources/vue/_app.config.js
Normal file
2
web-fast/src/main/resources/vue/_app.config.js
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
window.__PRODUCTION__JEESITE__CONF__={"VITE_GLOB_APP_TITLE":"JeeSite 快速开发平台","VITE_GLOB_APP_SHORT_NAME":"jeesite","VITE_GLOB_API_URL":"",
|
||||||
|
"VITE_GLOB_API_URL_PREFIX":"","VITE_GLOB_ADMIN_PATH":"/a","VITE_FILE_PREVIEW":"true"};Object.freeze(window.__PRODUCTION__JEESITE__CONF__);Object.defineProperty(window,"__PRODUCTION__JEESITE__CONF__",{configurable:false,writable:false,});var _hmt =_hmt ||[];(function(){var hm =document.createElement("script");hm.src ="https://hm.baidu.com/hm.js?65b88e88a94e0118de2962f328f17622";var s =document.getElementsByTagName("script")[0];s.parentNode.insertBefore(hm,s);})();
|
||||||
Reference in New Issue
Block a user