perf: 商业版隐藏文档相关链接

This commit is contained in:
xiaojunnuo
2025-09-01 15:52:14 +08:00
parent a4cbb11693
commit db89561480
5 changed files with 29 additions and 11 deletions
@@ -0,0 +1,12 @@
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);
}
},
};
@@ -0,0 +1,8 @@
import comm from "./comm-show.js";
const install = function (app: any) {
app.directive("comm", comm);
};
export default {
install,
};
@@ -4,9 +4,12 @@ import FastCrud from "./fast-crud";
import permission from "./permission";
import { App } from "vue";
import "./validator/index.js";
import directives from "./directive/index";
function install(app: App, options: any = {}) {
app.use(FastCrud, options);
app.use(permission);
app.use(directives);
}
export default {