refactor: License校验修改
This commit is contained in:
parent
0c92343d11
commit
466163b0f9
|
@ -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");
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue