fix:图片上传拖拽排序判断是否移动端

This commit is contained in:
aisen
2024-11-26 15:43:43 +08:00
parent f3471b2646
commit b503f3610f

View File

@@ -333,7 +333,8 @@
this.updateDragInfo()
});
// #ifdef H5
this.h5LongPress = true;
const userAgent = navigator.userAgent.toLowerCase();
this.h5LongPress = /ipad|iphone|midp|rv:1.2.3.4|ucweb|android|windows ce|windows mobile/.test(userAgent);
// #endif
},
methods: {