([]);
const crtSpaceText = computed(() => {
- const space = spaceList.value.find((item) => item.space_id === spaceId.value);
+ const space = spaceList.value.find(item => item.space_id === spaceId.value);
if (space) {
return `${space.space_name}(${spaceId.value})`;
}
@@ -135,7 +141,7 @@ watch(
},
{
immediate: true,
- }
+ },
);
const handleSpaceSearch = (searchStr: string) => {
@@ -174,7 +180,7 @@ const handleSelectSpace = (id: string) => {
state.currentTemplateSpace = 0;
state.currentPkg = '';
});
- const nav = navList.find((item) => item.module === route.meta.navModule);
+ const nav = navList.find(item => item.module === route.meta.navModule);
if (nav) {
router.push({ name: nav.id, params: { spaceId: id } });
} else {
@@ -242,6 +248,10 @@ Object.keys(module).forEach((path) => {
const handleLoginOut = () => {
loginOut();
};
+const handleToCMDB = () => {
+ // @ts-ignore
+ window.open(BK_CC_HOST); // eslint-disable-line no-undef
+};