diff --git a/src/views/Home/components/Market/Index.vue b/src/views/Home/components/Market/Index.vue index fea6936..518a60a 100644 --- a/src/views/Home/components/Market/Index.vue +++ b/src/views/Home/components/Market/Index.vue @@ -57,6 +57,7 @@ const marketIndex = ref(0); const marketInfo = ref([]); // 当前激活的 item 信息 const marketItem = ref(); +// 当前的搜索指 const searchValue = ref(''); const getTableList = async () => { const res = await getListScene(); diff --git a/src/views/Survey/components/SurveyItem.vue b/src/views/Survey/components/SurveyItem.vue index bd16160..3ad9992 100644 --- a/src/views/Survey/components/SurveyItem.vue +++ b/src/views/Survey/components/SurveyItem.vue @@ -69,9 +69,16 @@ onMounted(() => { const surveyTitleStyle = computed(() => { const isPublishNumber = survey.value.is_publish_number; const isSurveyTime = survey.value.is_time; - const width = isSurveyTime && isPublishNumber ? (isShortTitle.value ? '25vw' : '') : ''; + const width = + isSurveyTime && isPublishNumber + ? isShortTitle.value + ? '25vw' + : '' + : isSurveyTime + ? '170px' + : ''; return { - width + maxWidth: width }; });