修改需要打包导出的变量名

This commit is contained in:
yangjiewei
2025-06-05 17:57:37 +08:00
parent e41d0a44ed
commit 488cba91b5
11 changed files with 165 additions and 158 deletions

View File

@ -196,7 +196,7 @@
if (o.read) o.read = [];
});
try {
let res = import.meta.env.VITE_DISABLE_NEWS ? [] : await getOaNews(1);
let res = import.meta.env.VITE_GLOB_DISABLE_NEWS ? [] : await getOaNews(1);
res.list.forEach((o) => {
if (!o.readId) listData.value[0].unreadNum += 1;
listData.value[0].list.push({
@ -210,7 +210,7 @@
read: o.isRead,
});
});
let res1 = import.meta.env.VITE_DISABLE_NEWS ? [] : await getOaNews(2);
let res1 = import.meta.env.VITE_GLOB_DISABLE_NEWS ? [] : await getOaNews(2);
res1.list.forEach((o) => {
if (!o.readId) listData.value[1].unreadNum += 1;
listData.value[1].list.push({
@ -224,7 +224,7 @@
read: o.isRead,
});
});
let res2 = import.meta.env.VITE_DISABLE_NEWS ? [] : await getOaMessage();
let res2 = import.meta.env.VITE_GLOB_DISABLE_NEWS ? [] : await getOaMessage();
res2.forEach((o) => {
if (o.messageType === 0) {
if (!o.isRead) listData.value[2].unreadNum += 1;

View File

@ -25,7 +25,7 @@
<Notify v-if="getShowNotice" :class="`${prefixCls}-action__item notify-item`" />
<UserTenantChange v-if="getAppEnvConfig().VITE_TENANT_ENABLED" />
<UserTenantChange v-if="getAppEnvConfig().VITE_GLOB_TENANT_ENABLED" />
<SettingDrawer v-if="getShowSetting" :class="`${prefixCls}-action__item`" ref="drawer" />
<UserDropDown @menu-click="onMenuClick" :theme="getHeaderTheme" :show-settings="getShowSetting" />
</div>