Skip to content

Commit

Permalink
fix: login router fail (apache#3350)
Browse files Browse the repository at this point in the history
* fix: login router fail

* Fix dashboard login issue

---------

Co-authored-by: zhoujinsong <[email protected]>
  • Loading branch information
zhangmo8 and zhoujinsong authored Dec 3, 2024
1 parent b6b1e0f commit 4e7ab53
Show file tree
Hide file tree
Showing 5 changed files with 516 additions and 358 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ public void preHandleRequest(Context ctx) {
public void handleException(Exception e, Context ctx) {
if (e instanceof ForbiddenException) {
// request doesn't start with /ams is page request. we return index.html
if (!ctx.req.getRequestURI().startsWith("/ams")) {
if (!ctx.req.getRequestURI().startsWith("/api/ams")) {
ctx.html(getIndexFileContent());
} else {
ctx.json(new ErrorResponse(HttpCode.FORBIDDEN, "Please login first", ""));
Expand Down
8 changes: 4 additions & 4 deletions amoro-web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
"dayjs": "^1.11.11",
"echarts": "^5.5.0",
"pinia": "^2.1.7",
"swagger-ui": "^5.17.14",
"swagger-ui-dist": "^5.17.14",
"vue": "^3.4.27",
"vue-clipboard3": "^2.0.0",
"vue-i18n": "^9.13.1",
"vue-router": "^4.3.3",
"vue-virtual-scroller": "2.0.0-beta.8",
"swagger-ui": "^5.17.14",
"swagger-ui-dist": "^5.17.14"
"vue-virtual-scroller": "2.0.0-beta.8"
},
"devDependencies": {
"@antfu/eslint-config": "^2.21.1",
Expand All @@ -41,7 +41,7 @@
"vite": "^5.2.13",
"vite-plugin-fake-server": "^2.1.1",
"vite-plugin-svg-icons": "^2.0.1",
"vite-plugin-vue-devtools": "^7.4.5",
"vite-plugin-vue-devtools": "^7.6.7",
"vue-tsc": "^2.0.21"
},
"engines": {
Expand Down
Loading

0 comments on commit 4e7ab53

Please sign in to comment.