|
@@ -141,6 +141,9 @@
|
|
|
@click.stop="dragStart($event, elem)"
|
|
|
@dblclick.stop="open(elem)"
|
|
|
@contextmenu="onContextMenu($event, item, elem)"
|
|
|
+ @touchstart.passive="
|
|
|
+ dragStart($event, elem)
|
|
|
+ "
|
|
|
>
|
|
|
<!-- img 路径这样拼凑避免更新后路径一致图片使用缓存不更新 -->
|
|
|
<t-image
|
|
@@ -1017,7 +1020,7 @@ const getPrivateProjects = async (type: string) => {
|
|
|
}
|
|
|
};
|
|
|
|
|
|
-const dragStart = async (event: DragEvent | MouseEvent, item: any) => {
|
|
|
+const dragStart = async (event: DragEvent | MouseEvent|TouchEvent, item: any) => {
|
|
|
// event.stopPropagation();
|
|
|
if (!item) {
|
|
|
return;
|