26 lines
659 B
Vue
26 lines
659 B
Vue
<template>
|
|
<view>
|
|
<officialAccount
|
|
v-if="showOfficialAccount"
|
|
@close="modelClose($event, 'officialAccount')"
|
|
/>
|
|
<Drainage v-model="showDrainage" @close="modelClose($event, 'drainage')" />
|
|
</view>
|
|
</template>
|
|
<script setup>
|
|
import { ref, watch, computed, reactive, toRaw } from "vue";
|
|
import officialAccount from "@/components/official-account.vue";
|
|
import Drainage from "@/components/drainage.vue";
|
|
|
|
const showDrainage = ref(true);
|
|
const showOfficialAccount = ref(false);
|
|
|
|
function modelClose(e, type) {
|
|
console.log("modelClose", type);
|
|
if(type=='drainage'){
|
|
showOfficialAccount.value = true;
|
|
return
|
|
}
|
|
|
|
}
|
|
</script> |