提交 b9286c3e 编写于 作者: Q qq_38870145

Tue Oct 24 23:20:00 CST 2023 inscode

上级 da4dabc2
......@@ -2,9 +2,10 @@
import GameChart from './components/GameChart.vue'
import SearchGrade from './components/SearchGrade.vue'
import Draw from './components/draw/Draw.vue'
import Commit from './components/commit/Commit.vue'
import { reactive, onBeforeMount } from 'vue';
const state = reactive({
current: 'grade查询分数'
current: '评论'
})
onBeforeMount(() => {
......@@ -29,6 +30,9 @@ onBeforeMount(() => {
else if(data['type'] = 'draw'){
state.current = '抽奖'
}
else if(data['type'] = 'commit'){
state.current = '评论'
}
}
})
......@@ -45,6 +49,7 @@ onBeforeMount(() => {
</div>
<SearchGrade v-if="state.current === 'grade查询分数'" />
<GameChart v-else-if="state.current === '新星赛道选手信息可视化'" />
<Commit v-else-if="state.current === '评论'" />
<Draw v-else />
</div>
</template>
......
<script setup lang="ts">
import {reactive} from 'vue'
const state:any=reactive({
text:'',
articleId:'',
page:'',
pageSize:'',
unfold:'',
commitId:''
})
</script>
<template>
<div>
<div style="">
</div>
<div>
<div class="des">
生成的文章总结
</div>
<a-textarea v-model:value="state.text" placeholder="生成的文章总结" :disabled="state.loading"
:auto-size="{ minRows: 2, maxRows: 5 }" />
</div>
</div>
</template>
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册