mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-07-14 19:15:06 +08:00
开发环境下,管理后台每个菜单展示对应的《开发文档》的说明
This commit is contained in:
@ -175,7 +175,7 @@ export function getNowDateTime(timeStr) {
|
||||
* 获得租户功能是否开启
|
||||
*/
|
||||
export function getTenantEnable() {
|
||||
console.log("enable: " + process.env.VUE_APP_TENANT_ENABLE)
|
||||
// console.log("enable: " + process.env.VUE_APP_TENANT_ENABLE)
|
||||
if (process.env.VUE_APP_TENANT_ENABLE === "true") {
|
||||
return true;
|
||||
}
|
||||
@ -184,3 +184,16 @@ export function getTenantEnable() {
|
||||
}
|
||||
return process.env.VUE_APP_TENANT_ENABLE || true;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获得文档是否开启
|
||||
*/
|
||||
export function getDocEnable() {
|
||||
if (process.env.VUE_APP_DOC_ENABLE === "true") {
|
||||
return true;
|
||||
}
|
||||
if (process.env.VUE_APP_DOC_ENABLE === "false") {
|
||||
return false;
|
||||
}
|
||||
return process.env.VUE_APP_DOC_ENABLE || false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user