fix(工作台): bug 修复

This commit is contained in:
baiqi 2024-11-19 14:15:01 +08:00 committed by 刘瑞斌
parent aa87693393
commit aebfa5b17a
5 changed files with 8 additions and 5 deletions

View File

@ -292,7 +292,10 @@
function getListItemByDataIndex(dataIndex: string) { function getListItemByDataIndex(dataIndex: string) {
return [...currentConfigList.value, ...(props.customList || [])].find((item) => item.dataIndex === dataIndex); return [...currentConfigList.value, ...(props.customList || [])].find((item) => item.dataIndex === dataIndex);
} }
async function getUserViewDetail(id: string) { async function getUserViewDetail(id?: string) {
if (!id) {
return;
}
try { try {
const res = await getViewDetail(props.viewType, id); const res = await getViewDetail(props.viewType, id);
// //

View File

@ -2,7 +2,7 @@
<div class="work-bench-content"> <div class="work-bench-content">
<div class="header-setting pb-[4px]"> <div class="header-setting pb-[4px]">
<div <div
class="setting sticky top-0 z-[999999] mb-[-16px] flex items-center justify-between bg-[var(--color-bg-3)] pb-[16px]" class="setting sticky top-0 z-[999] mb-[-16px] flex items-center justify-between bg-[var(--color-bg-3)] pb-[16px]"
> >
<div class="flex items-center gap-[8px]"> <div class="flex items-center gap-[8px]">
<a-radio-group <a-radio-group

View File

@ -2,7 +2,7 @@
<div class="flex flex-col gap-[16px]"> <div class="flex flex-col gap-[16px]">
<template v-if="appStore.projectList.length > 0"> <template v-if="appStore.projectList.length > 0">
<div <div
class="sticky top-0 z-[999999] mb-[-16px] flex items-center justify-end gap-[12px] bg-[var(--color-bg-3)] pb-[16px]" class="sticky top-0 z-[999] mb-[-16px] flex items-center justify-end gap-[12px] bg-[var(--color-bg-3)] pb-[16px]"
> >
<MsProjectSelect <MsProjectSelect
v-model:project="currentProject" v-model:project="currentProject"

View File

@ -2,7 +2,7 @@
<div class="flex flex-col gap-[16px]"> <div class="flex flex-col gap-[16px]">
<template v-if="appStore.projectList.length > 0"> <template v-if="appStore.projectList.length > 0">
<div <div
class="sticky top-0 z-[999999] mb-[-16px] flex items-center justify-end gap-[12px] bg-[var(--color-bg-3)] pb-[16px]" class="sticky top-0 z-[999] mb-[-16px] flex items-center justify-end gap-[12px] bg-[var(--color-bg-3)] pb-[16px]"
> >
<MsProjectSelect <MsProjectSelect
v-model:project="currentProject" v-model:project="currentProject"

View File

@ -2,7 +2,7 @@
<div class="flex flex-col gap-[16px]"> <div class="flex flex-col gap-[16px]">
<template v-if="appStore.projectList.length > 0"> <template v-if="appStore.projectList.length > 0">
<div <div
class="sticky top-0 z-[999999] mb-[-16px] flex items-center justify-end gap-[12px] bg-[var(--color-bg-3)] pb-[16px]" class="sticky top-0 z-[999] mb-[-16px] flex items-center justify-end gap-[12px] bg-[var(--color-bg-3)] pb-[16px]"
> >
<MsProjectSelect <MsProjectSelect
v-model:project="currentProject" v-model:project="currentProject"