for example, I have two module components: one is the attribute module and the other is the login module. These two modules are not father-son relationship.
there is a function to open a list in the properties module, but it can only be used after logging in. So if you are not logged in, the trigger function will pop up the login module first (via vuex and el-element). But I think there will be a callback after the login module completes the login function. Can complete the event of opening the list.
attribute module:
<template>
<div>
<button @click=open></button>
<el-dialog></el-dialog>
</div>
</template>
<script>
method:{
open(){
if(){
showDialog(){}
}else{
}
}
showDialog(){dialog}
}
</script>
:
<template>
<div>
<el-dialog>
<button @click=open></button>
</el-dialog>
</div>
</template>
<script>
method:{
login(){}
}
</script>