Browse Source

202105051554

master
teddyhuang 5 years ago
parent
commit
79692f9fc8
2 changed files with 6 additions and 1 deletions
  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 View File

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


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

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

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


Loading…
Cancel
Save