瀏覽代碼

阻止事件

liushengqiang 1 年之前
父節點
當前提交
349a94a3cf
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/pc/create/index.tsx

+ 2 - 1
src/pc/create/index.tsx

@@ -168,7 +168,8 @@ export default defineComponent({
 												<img
 													class={styles.bottomBtn}
 													src={getImage("icon_29_2.png")}
-													onClick={() => {
+													onClick={(e: Event) => {
+                            e.stopPropagation();
 														data.item = { ...item };
 														nextTick(() => {
 															data.uploadShow = true;