Skip to content

Commit 22913cb

Browse files
committed
perf(frontend): redis工具箱重构_集群类型变更 #8840
1 parent 7de34f3 commit 22913cb

File tree

6 files changed

+588
-10
lines changed

6 files changed

+588
-10
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<!--
2+
* TencentBlueKing is pleased to support the open source community by making 蓝鲸智云-DB管理系统(BlueKing-BK-DBM) available.
3+
*
4+
* Copyright (C) 2017-2023 THL A29 Limited, a Tencent company. All rights reserved.
5+
*
6+
* Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License.
7+
* You may obtain a copy of the License athttps://opensource.org/licenses/MIT
8+
*
9+
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed
10+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for
11+
* the specific language governing permissions and limitations under the License.
12+
-->
13+
14+
<template>
15+
<Component :is="components[page]" />
16+
</template>
17+
<script setup lang="ts">
18+
import { useRoute } from 'vue-router';
19+
20+
import Page2 from '@views/db-manage/common/create-ticket-success/Index.vue';
21+
22+
import Page1 from './create/Index.vue';
23+
24+
const route = useRoute();
25+
26+
const components = {
27+
create: Page1,
28+
success: Page2,
29+
};
30+
31+
const page = computed(() => (route.params.page as keyof typeof components) || 'create');
32+
</script>

0 commit comments

Comments
 (0)