diff --git a/frontend/src/layout/index.vue b/frontend/src/layout/index.vue index 36e8e4188..a9511046f 100644 --- a/frontend/src/layout/index.vue +++ b/frontend/src/layout/index.vue @@ -75,7 +75,8 @@ const loadDataFromDB = async () => { const loadProductProFromDB = async () => { const res = await getLicense(); - globalStore.isProductPro = res.data.status === 'Enable'; + globalStore.isProductPro = + res.data.status === 'Enable' || res.data.status === 'Lost01' || res.data.status === 'Lost02'; }; const updateDarkMode = async (event: MediaQueryListEvent) => { diff --git a/frontend/src/views/setting/license/index.vue b/frontend/src/views/setting/license/index.vue index 366d0cca7..7dd635ae0 100644 --- a/frontend/src/views/setting/license/index.vue +++ b/frontend/src/views/setting/license/index.vue @@ -163,10 +163,12 @@ const search = async () => { .then((res) => { loading.value = false; license.status = res.data.status; - globalStore.isProductPro = res.data.status === 'Enable'; - if (res.data.status !== 'Enable') { + globalStore.isProductPro = + res.data.status === 'Enable' || res.data.status === 'Lost01' || res.data.status === 'Lost02'; + if (!globalStore.isProductPro || res.data.status === 'Lost03') { return; } + console.log('csdcasd'); license.licenseName = res.data.licenseName; license.assigneeName = res.data.assigneeName; license.trial = res.data.trial; @@ -184,7 +186,7 @@ const search = async () => { }; const hasLicense = () => { - return license.status === 'Enable'; + return globalStore.isProductPro; }; const showSync = () => {