Merge pull request #9739 from dataease/pr@dev-v2@perf_sync_community_data

perf(X-Pack): 导入lic之后自动同步游离数据
This commit is contained in:
fit2cloud-chenyw 2024-05-20 17:58:53 +08:00 committed by GitHub
commit 50c958033d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -127,9 +127,14 @@ const update = (licKey: string) => {
})
}
const autoSync = ref(true)
const checkFree = () => {
checkFreeApi().then(res => {
if (res.data) {
if (autoSync.value) {
syncFree()
return
}
// do something
const title = '存在未同步的资源数据,请谨慎操作!'
const childrenDomList = [h('strong', null, title)]