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

perf:修改模块

No related merge requests found
......@@ -11,7 +11,7 @@
delay="20"
draggable=".common-item"
class="w-full h-full text-white text-xl flex items-center justify-center"
@add="handleDelete"
@add="changeCollect"
>
<span class="del-text">{{ placeholder }}</span>
</draggable>
......@@ -42,6 +42,7 @@
dragClass="dragClass"
@add="addEnd"
@start="isDel = true"
@end="changeCollect"
>
<div
class="common-item w-full flex flex-col items-center cursor-pointer"
......@@ -214,12 +215,11 @@ export default {
this.isDel = true;
},
// 删除常用
handleDelete() {
// 修改常用
changeCollect() {
this.saveCollect();
this.isDel = false;
},
// 判断是否有重复
hasDuplicate(arr) {
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