You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ocr-web/src/views/message/index.vue

30 lines
519 B

<script lang="ts" setup>
import { ref } from 'vue'
import List from './content/List.vue'
import Detail from './content/Detail.vue'
const type = ref('1')
const id = ref('')
function goDetail(value) {
type.value = '2'
id.value = value
}
</script>
<template>
<div class="main">
<List v-if="type === '1'" @go-detail="goDetail" />
<Detail v-else :id="id" />
</div>
</template>
<style lang="less" scoped>
.main {
display: flex;
flex-direction: row;
box-sizing: border-box;
width: 100%;
}
</style>