OA板块整合与实现

This commit is contained in:
lijiaqi 2023-02-23 15:54:20 +08:00
parent 0cee91d90a
commit b6a55e5534
2 changed files with 5 additions and 3 deletions

View File

@ -19,13 +19,15 @@ public class SaTokenConfig implements WebMvcConfigurer {
@Override @Override
public void addResourceHandlers(ResourceHandlerRegistry registry) { public void addResourceHandlers(ResourceHandlerRegistry registry) {
registry.addResourceHandler("/assets/**").addResourceLocations("classpath:/html/dist/assets/"); registry.addResourceHandler("/index1/assets/**").addResourceLocations("classpath:/html/dist/assets/");
registry.addResourceHandler("/upload/**").addResourceLocations("file:" + System.getProperty("user.dir") + "/upload/"); registry.addResourceHandler("/upload/**").addResourceLocations("file:" + System.getProperty("user.dir") + "/upload/");
} }
@Override @Override
public void addViewControllers(ViewControllerRegistry registry) { public void addViewControllers(ViewControllerRegistry registry) {
registry.addViewController("/").setViewName("dist/index.html"); registry.addRedirectViewController("/","/index1/");
registry.addViewController("/index1/").setViewName("dist/index.html");
} }

View File

@ -36,7 +36,7 @@
</head> </head>
<body> <body>
<div id="app"></div> <div id="app"></div>
<script nomodule>!function(){var e=document,t=e.createElement("script");if(!("noModule"in t)&&"onbeforeload"in t){var n=!1;e.addEventListener("beforeload",(function(e){if(e.target===t)n=!0;else if(!e.target.hasAttribute("nomodule")||!n)return;e.preventDefault()}),!0),t.type="module",t.src=".",e.head.appendChild(t),t.remove()}}();</script> <script nomodule>!function(){var e=document,t=e.createElement("script");if(!("noModule"in t)&&"onbeforeload"in t){var n=!1;e.addEventListener("beforeload",(function(e){if(e.target===t)n=!0;else if(!e.target.hasAttribute("nomodule")||!n)return;e.preventDefault()}),!0),t.type="module",t.src=".",e.head.appendChild(t),t.remove()}}();</script>
<script nomodule crossorigin id="vite-legacy-polyfill" src="./assets/polyfills-legacy-8ff27441.js"></script> <script nomodule crossorigin id="vite-legacy-polyfill" src="./assets/polyfills-legacy-8ff27441.js"></script>
<script nomodule crossorigin id="vite-legacy-entry" data-src="./assets/index-legacy-a7da54ea.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script> <script nomodule crossorigin id="vite-legacy-entry" data-src="./assets/index-legacy-a7da54ea.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>