iOS裁剪按钮放顶部

This commit is contained in:
Linzm committed 2025-06-13 11:48:45 +08:00
1 parent 853019eb7b
commit 52c21e094e
1 file changed
+17
+17
View File
@@ -12,11 +12,28 @@ const router = useRouter()
const option = ref({
autoCropWidth: 1000,
autoCropHeight: 1000,
ceilbutton: false
})
const options = ref({
autoCropWidth: 1000,
autoCropHeight: 1000,
ceilbutton: false
})
const openApp = () => {
var userAgent = navigator.userAgent;
if (userAgent.match(/iPhone|iPod|iPad/i)) {
option.value.ceilbutton = true
options.value.ceilbutton = true
} else if (userAgent.match(/Android/i)) {
option.value.ceilbutton = false
options.value.ceilbutton = false
} else {
option.value.ceilbutton = false
options.value.ceilbutton = false
}
}
const imgurl = ref('')
const imgBgUrl = ref('')
const isBgShow = ref(true)