mirror of
https://github.com/certd/certd.git
synced 2025-11-25 09:10:11 +08:00
22 lines
622 B
TypeScript
22 lines
622 B
TypeScript
import { useSettingStore } from "/@/store/settings";
|
|
|
|
export default {
|
|
mounted(el: any, binding: any, vnode: any) {
|
|
const { value } = binding;
|
|
const settingStore = useSettingStore();
|
|
el.className = el.className + " need-plus";
|
|
if (!settingStore.isPlus) {
|
|
el.addEventListener("click", function (event: any) {
|
|
event.stopPropagation();
|
|
event.preventDefault();
|
|
settingStore.checkPlus();
|
|
});
|
|
el.addEventListener("move", function (event: any) {
|
|
event.stopPropagation();
|
|
event.preventDefault();
|
|
settingStore.checkPlus();
|
|
});
|
|
}
|
|
},
|
|
};
|