Commit 28d1ce02 by qlintonger xeno

尝试添加截图标注+6

parent 344f8f2d
...@@ -104,6 +104,7 @@ import { h, onMounted, onUpdated, ref } from 'vue' ...@@ -104,6 +104,7 @@ import { h, onMounted, onUpdated, ref } from 'vue'
import { userStates } from 'AnyR/states/wsStates' import { userStates } from 'AnyR/states/wsStates'
import ImageEditor from 'AnyR/widgets/ImageEditor/imageEditor.vue' import ImageEditor from 'AnyR/widgets/ImageEditor/imageEditor.vue'
import { Button, Message, Modal } from '@arco-design/web-vue' import { Button, Message, Modal } from '@arco-design/web-vue'
import { alova } from '@/api/alova-instance.ts'
const ps = defineProps<{ const ps = defineProps<{
id: any id: any
...@@ -122,8 +123,20 @@ function reallyEndMarkHandle() { ...@@ -122,8 +123,20 @@ function reallyEndMarkHandle() {
function initialPaintDone(blob: any) { function initialPaintDone(blob: any) {
if (!chatChannelState.value.screenshotInitiatorId && chatChannelState.value.displayImageEditor) { if (!chatChannelState.value.screenshotInitiatorId && chatChannelState.value.displayImageEditor) {
AnyR?.agora.startMark(blob, 'temp.png') const params = {
console.log('发送画画png完成') apiPwd: 'Ifar$2_0160_525_Mocp',
file: blob,
requestFrom: 6,
uid: 4
}
alova
// @ts-ignore
.Post<any>('/admin/uploadMuFile', params, { meta: { isUpload: true } })
.then((res) => {
if (res.code == 200) {
AnyR?.agora.startMark(res.data.url);
}
})
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment