Commit 673d75fd authored by “yiyousong”'s avatar “yiyousong”

perf:修改模块

parent 677f9cec
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
delay="20" delay="20"
draggable=".common-item" draggable=".common-item"
class="w-full h-full text-white text-xl flex items-center justify-center" class="w-full h-full text-white text-xl flex items-center justify-center"
@add="handleDelete" @add="changeCollect"
> >
<span class="del-text">{{ placeholder }}</span> <span class="del-text">{{ placeholder }}</span>
</draggable> </draggable>
...@@ -42,6 +42,7 @@ ...@@ -42,6 +42,7 @@
dragClass="dragClass" dragClass="dragClass"
@add="addEnd" @add="addEnd"
@start="isDel = true" @start="isDel = true"
@end="changeCollect"
> >
<div <div
class="common-item w-full flex flex-col items-center cursor-pointer" class="common-item w-full flex flex-col items-center cursor-pointer"
...@@ -214,12 +215,11 @@ export default { ...@@ -214,12 +215,11 @@ export default {
this.isDel = true; this.isDel = true;
}, },
// 删除常用 // 修改常用
handleDelete() { changeCollect() {
this.saveCollect(); this.saveCollect();
this.isDel = false; this.isDel = false;
}, },
// 判断是否有重复 // 判断是否有重复
hasDuplicate(arr) { hasDuplicate(arr) {
let idSet = new Set(); let idSet = new Set();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment