|
@@ -120,17 +120,6 @@ const {
|
|
|
onViewStandard,
|
|
|
} = useMarkHeader()
|
|
|
|
|
|
-const imgOption = computed<SetImgBgOption>(() => {
|
|
|
- return {
|
|
|
- image: currentTask?.value?.url,
|
|
|
- immediate: true,
|
|
|
- rotate: rotate.value,
|
|
|
- scale: scale.value,
|
|
|
- }
|
|
|
-})
|
|
|
-
|
|
|
-const { drawing, dataUrl } = useSetImgBg(imgOption)
|
|
|
-
|
|
|
type TaskInfoType = ExtractApiResponse<'getMarkingTask'> | ExtractArrayValue<ExtractApiResponse<'getMarkHistory'>>
|
|
|
|
|
|
const currentTask = ref<TaskInfoType>()
|
|
@@ -262,6 +251,17 @@ const operationHandles: Partial<Record<OperationType, (...args: any) => void>> =
|
|
|
const onOperationClick: OperationClick = ({ type, value }) => {
|
|
|
operationHandles[type]?.(value)
|
|
|
}
|
|
|
+
|
|
|
+const imgOption = computed<SetImgBgOption>(() => {
|
|
|
+ return {
|
|
|
+ image: currentTask?.value?.url,
|
|
|
+ immediate: true,
|
|
|
+ rotate: rotate.value,
|
|
|
+ scale: scale.value,
|
|
|
+ }
|
|
|
+})
|
|
|
+
|
|
|
+const { drawing, dataUrl } = useSetImgBg(imgOption)
|
|
|
</script>
|
|
|
|
|
|
<style scoped lang="scss">
|