Skip to content

Commit

Permalink
[feat #1839]: Make dashboard support deploying under subpath (#1851)
Browse files Browse the repository at this point in the history
  • Loading branch information
xuande authored Nov 23, 2020
1 parent 8c4f251 commit 699532e
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ angular
return response;
},
'request' : function(config) {
// Resolved resource loading failure after configuring ContextPath
var baseUrl = $window.document.getElementsByTagName('base')[0].href;
config.url = baseUrl + config.url;
return config;
},
'requestError' : function(config){
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="container">
<div class="row" style="margin: 200px auto 15px auto; text-align: center;">
<img src="../../assets/img/sentinel-logo.png" alt="Sentinel Logo"
<img src="./assets/img/sentinel-logo.png" alt="Sentinel Logo"
style="max-height: 25%; max-width: 25%;">
<!-- <h1 id='login_title'>Sentinel 控制台</h1> -->
</div>
Expand Down

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions sentinel-dashboard/src/main/webapp/resources/index.htm
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<link rel="stylesheet" href="./lib/css/bootstrap.min.css" />
<link rel="stylesheet" href="./lib/css/font-awesome.min.css">
<link rel="stylesheet" href="./dist/css/app.css">
<base href="./">
</head>

<body>
Expand Down
1 change: 1 addition & 0 deletions sentinel-dashboard/src/main/webapp/resources/index_dev.htm
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<link rel="stylesheet" href="//cdn.bootcss.com/bootstrap/3.0.3/css/bootstrap.min.css" />
<link rel="stylesheet" href="//cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="http://localhost:1234/css/app.css">
<base href="./">
</head>

<body>
Expand Down

0 comments on commit 699532e

Please sign in to comment.