mirror of
https://github.com/certd/certd.git
synced 2026-04-15 13:32:37 +08:00
13 lines
371 B
TypeScript
13 lines
371 B
TypeScript
import { useSettingStore } from "/@/store/settings";
|
|
|
|
export default {
|
|
mounted(el: any, binding: any, vnode: any) {
|
|
const settingStore = useSettingStore();
|
|
const isComm = settingStore.isComm;
|
|
const { value } = binding;
|
|
if ((value === false && isComm) || (value === true && !isComm)) {
|
|
el.parentNode && el.parentNode.removeChild(el);
|
|
}
|
|
},
|
|
};
|