-
@@ -36,6 +36,7 @@ interface ButtonItem {
interface Props {
buttonList: ButtonItem[]
placeholder?: string
+ inputWidth?: string
}
interface SearchParams {
@@ -91,11 +92,13 @@ const handleSearch = () => {
line-height: 4rem;
min-width: 10rem;
font-weight: normal;
+ border-width: 0.1rem;
}
}
.search_input {
height: 4rem;
+ width: 23rem; // 默认宽度
background-color: #fff;
border: 0.1rem solid #000;
border-radius: 43rem;
@@ -106,6 +109,10 @@ const handleSearch = () => {
height: 100%;
padding-left: 3rem;
border-radius: 4rem;
+ width: calc(100% - 2rem);
+ }
+ .search_input_icon {
+ font-size: 2rem;
}
}
}
diff --git a/src/views/HomeMain.vue b/src/views/HomeMain.vue
index ca3e155f..26f3be5b 100644
--- a/src/views/HomeMain.vue
+++ b/src/views/HomeMain.vue
@@ -403,6 +403,10 @@ export default defineComponent({
homeMainData.openType = Object.keys(query)[0]
homeMainData.openTypeChild = query[Object.keys(query)[0]]
}
+ if(homeMainData.openType === 'history' && route.path !== '/home/history'){
+ homeMainData.openTypeChild = ''
+ homeMainData.openType = ''
+ }
if((query?.id || query?.history) && !await getIdExistToHistory()){
router.push('/home')
return