perf: 处理已到期情况
This commit is contained in:
@ -72,7 +72,7 @@
|
|||||||
</MenuItem>
|
</MenuItem>
|
||||||
</template>
|
</template>
|
||||||
<div v-else>
|
<div v-else>
|
||||||
<MenuItem class="rounded-8px hover:bg-#F2F3F5" @click="onEnterpriseItemClick(item)">
|
<MenuItem class="rounded-8px hover:bg-#F2F3F5" @click="handleSubAccountClick(item)">
|
||||||
<div class="flex justify-between items-center overflow-hidden">
|
<div class="flex justify-between items-center overflow-hidden">
|
||||||
<div
|
<div
|
||||||
class="flex items-center w-100% flex-1 overflow-hidden"
|
class="flex items-center w-100% flex-1 overflow-hidden"
|
||||||
@ -180,6 +180,7 @@ const onEnterpriseItemClick = async (item) => {
|
|||||||
enterpriseStore.setEnterpriseInfo(item);
|
enterpriseStore.setEnterpriseInfo(item);
|
||||||
window.location.reload();
|
window.location.reload();
|
||||||
};
|
};
|
||||||
|
|
||||||
const clickExit = async () => {
|
const clickExit = async () => {
|
||||||
exitAccountModalRef.value?.open();
|
exitAccountModalRef.value?.open();
|
||||||
};
|
};
|
||||||
@ -200,6 +201,14 @@ const onCreate = (item) => {
|
|||||||
}
|
}
|
||||||
router.push({ name: 'Trial' });
|
router.push({ name: 'Trial' });
|
||||||
};
|
};
|
||||||
|
const handleSubAccountClick = (item) => {
|
||||||
|
enterpriseStore.setEnterpriseInfo(item);
|
||||||
|
if (item.subscribe_status === 3) {
|
||||||
|
router.push({ name: 'Trial' });
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
window.location.reload();
|
||||||
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|||||||
Reference in New Issue
Block a user