refactor: License校验修改

This commit is contained in:
CaptainB 2022-05-17 10:05:31 +08:00 committed by 刘瑞斌
parent 0c92343d11
commit 466163b0f9
3 changed files with 3 additions and 3 deletions

View File

@ -37,7 +37,7 @@ public class ShiroUtils {
filterChainDefinitionMap.put("/authsource/list/allenable", "anon");
filterChainDefinitionMap.put("/sso/signin", "anon");
filterChainDefinitionMap.put("/sso/callback/**", "anon");
filterChainDefinitionMap.put("/license/valid", "anon");
filterChainDefinitionMap.put("/license/validate", "anon");
filterChainDefinitionMap.put("/api/jmeter/download", "anon");
filterChainDefinitionMap.put("/api/jmeter/download/files", "anon");
filterChainDefinitionMap.put("/api/jmeter/download/jar", "anon");

View File

@ -92,7 +92,7 @@ export default {
this.activeIndex = this.$route.matched[0].path;
}
axios.get('/license/valid').then(response => {
axios.get('/license/validate').then(response => {
validateAndSetLicense(response.data.data); // listModules license, axios
if (!hasLicense()) {
this.isReport = false;

View File

@ -106,7 +106,7 @@ router.afterEach(() => {
});
export function getLicense(callback) {
return baseGet("/license/valid", data => {
return baseGet("/license/validate", data => {
validateAndSetLicense(data);
if (callback) callback(data);
});