Expose workflow run history in AI admin
This commit is contained in:
@@ -26,6 +26,7 @@ AI_AGENT_ADMIN_MENU_NAMES = {
|
|||||||
"AIPlatform",
|
"AIPlatform",
|
||||||
"AIAgent",
|
"AIAgent",
|
||||||
"AIWorkflow",
|
"AIWorkflow",
|
||||||
|
"AIWorkflowRuns",
|
||||||
"KnowledgeBase",
|
"KnowledgeBase",
|
||||||
"Codex",
|
"Codex",
|
||||||
"SystemConfigManager",
|
"SystemConfigManager",
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ import { BasicLayout, LockScreen, UserDropdown } from '@vben/layouts';
|
|||||||
import { $t } from '@vben/locales';
|
import { $t } from '@vben/locales';
|
||||||
import { preferences } from '@vben/preferences';
|
import { preferences } from '@vben/preferences';
|
||||||
import { useAccessStore, useUserStore } from '@vben/stores';
|
import { useAccessStore, useUserStore } from '@vben/stores';
|
||||||
import { openWindow } from '@vben/utils';
|
|
||||||
|
|
||||||
import NotificationPopup from '#/components/notification/NotificationPopup.vue';
|
import NotificationPopup from '#/components/notification/NotificationPopup.vue';
|
||||||
import { getFileUrl } from '#/composables/useFileUrl';
|
import { getFileUrl } from '#/composables/useFileUrl';
|
||||||
@@ -95,13 +94,8 @@ const menus = computed(() => [
|
|||||||
// },
|
// },
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const ZQ_PLATFORM_OFFICIAL_URL = 'https://zq-platform.com/';
|
|
||||||
/** 双列仅第一列窄条展示时的短文案 */
|
/** 双列仅第一列窄条展示时的短文案 */
|
||||||
const ZQ_PLATFORM_BRAND_SHORT = 'ZQ Platform';
|
const PRODUCT_BRAND_SHORT = 'AI Agent';
|
||||||
|
|
||||||
function handleOpenZqOfficialSite() {
|
|
||||||
openWindow(ZQ_PLATFORM_OFFICIAL_URL, { target: '_blank' });
|
|
||||||
}
|
|
||||||
|
|
||||||
// 头像URL(响应式)
|
// 头像URL(响应式)
|
||||||
const avatar = ref('');
|
const avatar = ref('');
|
||||||
@@ -223,17 +217,16 @@ watch(
|
|||||||
class="text-muted-foreground hover:text-foreground max-w-full px-1 py-0.5 text-center text-[11px] leading-tight transition-colors"
|
class="text-muted-foreground hover:text-foreground max-w-full px-1 py-0.5 text-center text-[11px] leading-tight transition-colors"
|
||||||
:title="
|
:title="
|
||||||
sidebarFooterProps?.compact
|
sidebarFooterProps?.compact
|
||||||
? ZQ_PLATFORM_BRAND_SHORT
|
? PRODUCT_BRAND_SHORT
|
||||||
: $t('ui.layout.poweredBy')
|
: $t('ui.layout.poweredBy')
|
||||||
"
|
"
|
||||||
@click="handleOpenZqOfficialSite"
|
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
v-show="sidebarFooterProps?.compact || !preferences.sidebar.collapsed"
|
v-show="sidebarFooterProps?.compact || !preferences.sidebar.collapsed"
|
||||||
class="truncate"
|
class="truncate"
|
||||||
>{{
|
>{{
|
||||||
sidebarFooterProps?.compact
|
sidebarFooterProps?.compact
|
||||||
? ZQ_PLATFORM_BRAND_SHORT
|
? PRODUCT_BRAND_SHORT
|
||||||
: $t('ui.layout.poweredBy')
|
: $t('ui.layout.poweredBy')
|
||||||
}}</span>
|
}}</span>
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
Reference in New Issue
Block a user