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