@@ -38,6 +38,9 @@ angular | |||||
return response; | return response; | ||||
}, | }, | ||||
'request' : function(config) { | '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; | return config; | ||||
}, | }, | ||||
'requestError' : function(config){ | 'requestError' : function(config){ | ||||
@@ -1,6 +1,6 @@ | |||||
<div class="container"> | <div class="container"> | ||||
<div class="row" style="margin: 200px auto 15px auto; text-align: center;"> | <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%;"> | style="max-height: 25%; max-width: 25%;"> | ||||
<!-- <h1 id='login_title'>Sentinel 控制台</h1> --> | <!-- <h1 id='login_title'>Sentinel 控制台</h1> --> | ||||
</div> | </div> | ||||
@@ -10,6 +10,7 @@ | |||||
<link rel="stylesheet" href="./lib/css/bootstrap.min.css" /> | <link rel="stylesheet" href="./lib/css/bootstrap.min.css" /> | ||||
<link rel="stylesheet" href="./lib/css/font-awesome.min.css"> | <link rel="stylesheet" href="./lib/css/font-awesome.min.css"> | ||||
<link rel="stylesheet" href="./dist/css/app.css"> | <link rel="stylesheet" href="./dist/css/app.css"> | ||||
<base href="./"> | |||||
</head> | </head> | ||||
<body> | <body> | ||||
@@ -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/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="//cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.min.css"> | ||||
<link rel="stylesheet" href="http://localhost:1234/css/app.css"> | <link rel="stylesheet" href="http://localhost:1234/css/app.css"> | ||||
<base href="./"> | |||||
</head> | </head> | ||||
<body> | <body> | ||||