qcp QCP pad
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

21 lines
466 B

import { onLoad } from '@dcloudio/uni-app'
import { ref } from 'vue'
export function useGetFirstAidId(callback?: Function) {
const firstAidId = ref('')
const code = ref('')
onLoad(option => {
if (option?.firstAidId) {
firstAidId.value = option.firstAidId
// 新建过来的
callback && callback(option.firstAidId)
} else {
firstAidId.value = ''
}
code.value = option?.code || ''
})
return { firstAidId, code }
}