Sfoglia il codice sorgente

202105051554

master
teddyhuang 5 anni fa
parent
commit
79692f9fc8
2 ha cambiato i file con 6 aggiunte e 1 eliminazioni
  1. +1
    -1
      app/src/components/Login.vue
  2. +5
    -0
      src/main/java/com/moze/rms/RequestInterceptor.java

+ 1
- 1
app/src/components/Login.vue Vedi File

@@ -12,7 +12,7 @@
>
<v-col cols="12" align-self="center" class="d-flex">
<v-spacer/>
<img src="/rms/obank_logo.svg" type="img">
<img src="/rms/img/obank_logo.svg" type="img">
<v-spacer/>
</v-col>
<v-col


+ 5
- 0
src/main/java/com/moze/rms/RequestInterceptor.java Vedi File

@@ -22,8 +22,13 @@ public class RequestInterceptor implements HandlerInterceptor {
if (uri.equals("/index.html")) {
return true;
} else if (uri.startsWith("/js/") || uri.startsWith("/manifest") || uri.startsWith("/img") || uri.startsWith("/fonts") || uri.startsWith("/css")) {

return true;
} else {
if (uri.contains("obank_logo.svg")) {
response.setContentType("image/svg+xml");
return true;
}
RequestDispatcher dispatcher = request.getRequestDispatcher("/index.html");
dispatcher.forward(request, response);
return false;


Caricamento…
Annulla
Salva