Commit fb0250ab by qlintonger xeno

尝试添加截图标注+10

parent 6551c8b2
...@@ -133,42 +133,42 @@ function initialPaintDone(blob: Blob) { ...@@ -133,42 +133,42 @@ function initialPaintDone(blob: Blob) {
} }
function paintSaved(blob: any) { function paintSaved(blob: any) {
AnyR?.agora.archiveMark(blob, 'temp.png') const file = new File([blob], 'temp.png')
const params = {
apiPwd: 'Ifar$2_0160_525_Mocp',
file,
requestFrom: 6,
uid: 4
}
alova
// @ts-ignore
.Post<any>('/admin/uploadMuFile', params, { meta: { isUpload: true } })
.then((res) => {
if (res.code == 200) {
AnyR?.agora.archiveMark({
fileUrl: res.data.url,
fileName: res.data.name,
fileSize: Number.parseInt(res.data.size),
fileType: 'image'
})
}
})
} }
async function beforeEndMarkHandle() { async function beforeEndMarkHandle() {
if (isScreenShotByCurrentUser.value) { if (isScreenShotByCurrentUser.value) {
return new Promise(function (resolve) { return new Promise(function (resolve) {
Modal.warning({ Modal.warning({
title: '你是截图发起者,退出后将会要求其他用户一同退出,确认?', title: '退出确认',
content: () => content: "你是截图发起者,退出后将会要求其他用户一同退出,确认?",
h( okText: "确认",
'div', cancelText: "取消",
{ onOk() {
class: 'flex w-full items-center justify-center' resolve(true)
},
[
h(
Button,
{
size: 'small',
type: 'primary',
status: 'warning',
onClick: () => resolve(true)
}, },
'确定' onCancel() {
), resolve(false)
h(
Button,
{
size: 'small',
type: 'primary',
onClick: () => resolve(false)
}, },
'取消'
)
]
)
}) })
}) })
} }
......
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