잘못변경
This commit is contained in:
@@ -19,7 +19,7 @@ export type objSearchType = {
|
||||
|
||||
|
||||
export function BdstReg() {
|
||||
const { rain, code, bdst,init } = useWrStore((state) => {
|
||||
const { rain, code, bdst,findBdst } = useWrStore((state) => {
|
||||
return state;
|
||||
});
|
||||
|
||||
@@ -42,7 +42,7 @@ export function BdstReg() {
|
||||
setObjSearch({...objSearch,sgg: String(val)})
|
||||
};
|
||||
|
||||
const searchBdst=()=>{
|
||||
const searchBdst=(searchTxt: string | undefined)=>{
|
||||
if(objSearch.city===""){
|
||||
alert('시도조건은 필수 입니다.')
|
||||
return
|
||||
@@ -112,7 +112,7 @@ export function BdstReg() {
|
||||
setText={ setSearchTxt}
|
||||
|
||||
/> */}
|
||||
<Button className="rounded-lg" onClick={()=>{init(searchTxt)}}>조회</Button>
|
||||
<Button className="rounded-lg" onClick={()=>{searchBdst(searchTxt)}}>조회</Button>
|
||||
</div>
|
||||
<div className="border-t border-gray-300 my-4"></div>
|
||||
<div className="h-auto">
|
||||
|
||||
Reference in New Issue
Block a user