forked from github/dataease
perf: 许可控制
This commit is contained in:
parent
c177304b18
commit
1bdbfaf3b3
@ -14,7 +14,7 @@ import org.springframework.web.bind.annotation.RestController;
|
||||
@RequestMapping("/license")
|
||||
public class LicenseServer implements LicenseApi {
|
||||
|
||||
private static final String product = "DataEase";
|
||||
private static final String product = "DataEase v2";
|
||||
@Resource
|
||||
private CoreLicManage coreLicManage;
|
||||
|
||||
|
@ -90,7 +90,7 @@ const validateHandler = (param, success) => {
|
||||
}
|
||||
const getLicense = result => {
|
||||
if (result.status === 'valid') {
|
||||
tipsSuffix.value = result.edition === 'Embedded' ? '套' : '个账号'
|
||||
tipsSuffix.value = result?.license?.edition === 'Embedded' ? '套' : '个账号'
|
||||
}
|
||||
return {
|
||||
status: result.status,
|
||||
|
Loading…
Reference in New Issue
Block a user