“7176bb9198807e350bd38d90f99d0e88d29ff1cc”上不存在“source/git@gitcode.net:taosdata/tdengine.git”
提交 ee58aaea 编写于 作者: Q qq_38870145

Sat Nov 25 22:58:00 CST 2023 inscode

上级 31896db3
<script setup>
import GameChart from './components/GameChart.vue'
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'
......@@ -36,7 +37,10 @@ const downloadBase64 = (content,fileName) => {
// 截图
const shotAction=()=>{
html2canvas(document.getElementById('render-id')).then(function(canvas) {
html2canvas(document.getElementById('render-id'),{
useCORS:true,
proxy:'inscode.csdn.net'
}).then(function(canvas) {
console.log('canvas',canvas)
const base64 = canvas.toDataURL().replace(/^data:image\/(png|jpg);base64,/, '');
const base64img = `data:image/png;base64,${base64}`;
......
......@@ -111,6 +111,6 @@ const restartGameBtn = () => {
startGameBtn()
}
onMounted(() => {
mockUserData(13)
mockUserData(26)
})
</script>
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册