context-path 대응
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -35,12 +35,10 @@
|
||||
</body>
|
||||
|
||||
<th:block layout:fragment="contentScript">
|
||||
<!-- <script th:src="@{/plugins/apitestmanager/vendors.bundle.js}" defer></script>-->
|
||||
<!-- <script th:src="@{/plugins/apitestmanager/app.bundle.js}" defer></script>-->
|
||||
<script>
|
||||
$(document).ajaxError(function (event, jqxhr, settings, exception) {
|
||||
if (jqxhr.status === 401) {
|
||||
window.location.href = '/';
|
||||
window.location.href = '[[@{/}]]';
|
||||
}
|
||||
});
|
||||
|
||||
@@ -53,8 +51,9 @@
|
||||
basePath: $(this).data('path')
|
||||
});
|
||||
});
|
||||
|
||||
const apiTester = new APITestManager(servers);
|
||||
let options = {};
|
||||
options.contextPath = '[[@{/}]]';
|
||||
const apiTester = new APITestManager(servers, options);
|
||||
});
|
||||
</script>
|
||||
</th:block>
|
||||
|
||||
Reference in New Issue
Block a user