提交 19091422 编写于 作者: Q qq_38870145

Sat Dec 9 14:59:00 CST 2023 inscode

上级 eaf5ddc8
......@@ -4,12 +4,13 @@ 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 Drag from './components/drag/Drag.vue'
import { reactive, onBeforeMount,onMounted } from 'vue';
import html2canvas from 'html2canvas';
// state
const state = reactive({
current: '评论'
current: '拖拽'
})
/** 下载图片 */
......@@ -81,6 +82,9 @@ onBeforeMount(() => {
else if(data['type'] = 'commit'){
state.current = '评论'
}
else if(data['type'] = 'grag'){
state.current = '拖拽'
}
}
})
</script>
......@@ -93,6 +97,7 @@ onBeforeMount(() => {
<a-radio value="新星赛道选手信息可视化">csdn新星赛道可视化</a-radio>
<a-radio value="抽奖">随机抽奖</a-radio>
<a-radio value="评论">csdn分析评论</a-radio>
<a-radio value="拖拽">拖拽</a-radio>
</a-radio-group>
<a-button type="primary" @click="shotAction">
截图
......@@ -102,6 +107,7 @@ onBeforeMount(() => {
<SearchGrade v-if="state.current === 'grade查询分数'" />
<GameChart v-else-if="state.current === '新星赛道选手信息可视化'" />
<Commit v-else-if="state.current === '评论'" />
<Drag v-else-if="state.current === '拖拽'"/>
<Draw v-else />
</div>
</div>
......
<template>
<div>
拖拽
</div>
</template>
<script setup>
</script>
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册