Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: hide lark and wecom in release (#12330)

ecmadao28d9082678e9
diff --git a/frontend/src/types/v1/projectWebhook.ts b/frontend/src/types/v1/projectWebhook.ts
index 483341b564..b07776bfb8 100644
--- a/frontend/src/types/v1/projectWebhook.ts
+++ b/frontend/src/types/v1/projectWebhook.ts
@@ -1,4 +1,5 @@
import { t } from "@/plugins/i18n";
+import { isDev } from "@/utils";
import { EMPTY_ID } from "../const";
import {
Activity_Type,
@@ -69,7 +70,7 @@ export const projectWebhookV1TypeItemList = (): ProjectWebhookV1TypeItem[] => {
urlPlaceholder: "https://open.feishu.cn/open-apis/bot/v2/hook/...",
docUrl:
"https://open.feishu.cn/document/client-docs/bot-v3/add-custom-bot",
- supportDirectMessage: true,
+ supportDirectMessage: isDev(),
},
{
type: Webhook_Type.TYPE_WECOM,
@@ -77,7 +78,7 @@ export const projectWebhookV1TypeItemList = (): ProjectWebhookV1TypeItem[] => {
urlPrefix: "https://qyapi.weixin.qq.com",
urlPlaceholder: "https://qyapi.weixin.qq.com/cgi-bin/webhook/...",
docUrl: "https://open.work.weixin.qq.com/help2/pc/14931",
- supportDirectMessage: true,
+ supportDirectMessage: isDev(),
},
{
type: Webhook_Type.TYPE_CUSTOM,
diff --git a/frontend/src/views/SettingWorkspaceIM.vue b/frontend/src/views/SettingWorkspaceIM.vue
index 93c3d2ef32..99083cfec3 100644
--- a/frontend/src/views/SettingWorkspaceIM.vue
+++ b/frontend/src/views/SettingWorkspaceIM.vue
@@ -56,6 +56,7 @@ import {
AppIMSetting_Slack,
AppIMSetting_Wecom,
} from "@/types/proto/v1/setting_service";
+import { isDev } from "@/utils";
interface LocalState {
selectedTab: Webhook_Type;
@@ -85,8 +86,6 @@ const imSetting = computed(
watch(
() => imSetting.value,
(setting) => {
- console.log("setting change");
- console.log(setting);
state.setting = cloneDeep(setting);
},
{ once: true, immediate: true }
@@ -140,6 +139,7 @@ const imList = computed(() => {
{
name: t("common.feishu"),
type: Webhook_Type.TYPE_DINGTALK,
+ hide: !isDev(),
render: () => {
return (
<div class="space-y-4">
@@ -172,6 +172,7 @@ const imList = computed(() => {
{
name: t("common.wecom"),
type: Webhook_Type.TYPE_WECOM,
+ hide: !isDev(),
render: () => {
return (
<div class="space-y-4">
@@ -201,7 +202,7 @@ const imList = computed(() => {
);
},
},
- ];
+ ].filter((item) => !item.hide);
});
const dataChanged = computed(() => {