<template>
  <view>
    <position :jobId="jobId" :isClone="isClone"></position>
  </view>
</template>
<script setup>
import { ref } from 'vue'
import { onLoad } from '@dcloudio/uni-app'
import position from '@/components/positionItem'

const jobId = ref('')
const isClone = ref(false)
const props = defineProps({
  jobId: String
})

onLoad((options) => {
  jobId.value = options?.jobId || props.jobId || ''

  if (options?.isClone) isClone.value = true
})

</script>