给批量检验添加新路由或者参数,便于从首页直接进入
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
<div class="tjsj">
|
||||
<span style="height: 14px" class="split"></span>
|
||||
<span>可使用:</span>
|
||||
<span class="blue">3</span>
|
||||
<span class="green">3</span>
|
||||
<span style="height: 14px" class="split"></span>
|
||||
<span>未治理:</span>
|
||||
<span class="yellow">3</span>
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
<script setup lang="ts">
|
||||
import SettingTitle from '@/components/Setting/SettingTitle/index.vue';
|
||||
import SettingText from '@/components/Setting/SettingText/index.vue';
|
||||
import { ref,reactive } from 'vue';
|
||||
import { ref,reactive,watch } from 'vue';
|
||||
import { getGroupClaList, setGroupClaStatus, deleteGroupCla } from '@/api/cla';
|
||||
import { useRouter, useRoute } from 'vue-router';
|
||||
import { GModal } from '@/components/Setting/index';
|
||||
@@ -30,7 +30,22 @@ import OssQuery from './Components/OssQuery.vue';
|
||||
import BatchVerify from './Components/BatchVerify.vue';
|
||||
const { namespace } = getOrgInfo();
|
||||
|
||||
const selectTab = ref('OssQuery');
|
||||
|
||||
// 获取当前路由
|
||||
const route = useRoute();
|
||||
|
||||
const selectTab = ref(route.query.tab || 'OssQuery');
|
||||
|
||||
|
||||
// 监听路由变化,更新 Tab
|
||||
watch(
|
||||
() => route.query.tab,
|
||||
(newTab) => {
|
||||
if (newTab) {
|
||||
selectTab.value = newTab;
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
// 删除弹窗
|
||||
const item = ref('');
|
||||
|
||||
Reference in New Issue
Block a user