캐릭터 챗봇 #74
| @@ -174,6 +174,16 @@ | |||||||
|                 </v-list> |                 </v-list> | ||||||
|               </v-col> |               </v-col> | ||||||
|             </v-row> |             </v-row> | ||||||
|  |             <v-row v-if="searchPerformed && searchResults.length === 0"> | ||||||
|  |               <v-col cols="12"> | ||||||
|  |                 <v-alert | ||||||
|  |                   type="info" | ||||||
|  |                   outlined | ||||||
|  |                 > | ||||||
|  |                   검색결과가 없습니다. | ||||||
|  |                 </v-alert> | ||||||
|  |               </v-col> | ||||||
|  |             </v-row> | ||||||
|             <v-row v-if="selectedCharacter"> |             <v-row v-if="selectedCharacter"> | ||||||
|               <v-col cols="12"> |               <v-col cols="12"> | ||||||
|                 <v-alert |                 <v-alert | ||||||
| @@ -284,6 +294,7 @@ export default { | |||||||
|       selectedCharacter: null, |       selectedCharacter: null, | ||||||
|       searchKeyword: '', |       searchKeyword: '', | ||||||
|       searchResults: [], |       searchResults: [], | ||||||
|  |       searchPerformed: false, | ||||||
|       previewImage: null, |       previewImage: null, | ||||||
|       bannerForm: { |       bannerForm: { | ||||||
|         image: null, |         image: null, | ||||||
| @@ -383,6 +394,7 @@ export default { | |||||||
|       this.previewImage = null; |       this.previewImage = null; | ||||||
|       this.searchKeyword = ''; |       this.searchKeyword = ''; | ||||||
|       this.searchResults = []; |       this.searchResults = []; | ||||||
|  |       this.searchPerformed = false; | ||||||
|       this.showDialog = true; |       this.showDialog = true; | ||||||
|     }, |     }, | ||||||
|  |  | ||||||
| @@ -403,6 +415,7 @@ export default { | |||||||
|       this.previewImage = null; |       this.previewImage = null; | ||||||
|       this.searchKeyword = ''; |       this.searchKeyword = ''; | ||||||
|       this.searchResults = []; |       this.searchResults = []; | ||||||
|  |       this.searchPerformed = false; | ||||||
|       this.showDialog = true; |       this.showDialog = true; | ||||||
|     }, |     }, | ||||||
|  |  | ||||||
| @@ -418,6 +431,7 @@ export default { | |||||||
|       this.previewImage = null; |       this.previewImage = null; | ||||||
|       this.searchKeyword = ''; |       this.searchKeyword = ''; | ||||||
|       this.searchResults = []; |       this.searchResults = []; | ||||||
|  |       this.searchPerformed = false; | ||||||
|     }, |     }, | ||||||
|  |  | ||||||
|     confirmDelete(banner) { |     confirmDelete(banner) { | ||||||
| @@ -446,6 +460,7 @@ export default { | |||||||
|  |  | ||||||
|         if (response && response.data) { |         if (response && response.data) { | ||||||
|           this.searchResults = response.data.content || []; |           this.searchResults = response.data.content || []; | ||||||
|  |           this.searchPerformed = true; | ||||||
|         } |         } | ||||||
|       } catch (error) { |       } catch (error) { | ||||||
|         console.error('캐릭터 검색 오류:', error); |         console.error('캐릭터 검색 오류:', error); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user