|  | @@ -20,7 +20,7 @@ export default defineComponent({
 | 
	
		
			
				|  |  |      // const catchStore = useCatchStore();
 | 
	
		
			
				|  |  |      const forms = reactive({
 | 
	
		
			
				|  |  |        keyword: '',
 | 
	
		
			
				|  |  | -      wikiCategoryId: '',
 | 
	
		
			
				|  |  | +      wikiCategoryId: props.wikiCategoryId || '',
 | 
	
		
			
				|  |  |        wikiCategoryIdChild: '',
 | 
	
		
			
				|  |  |        childIds: [] as any
 | 
	
		
			
				|  |  |      });
 | 
	
	
		
			
				|  | @@ -48,10 +48,19 @@ export default defineComponent({
 | 
	
		
			
				|  |  |        if (child && child.childrenList.length) {
 | 
	
		
			
				|  |  |          child.childrenList.forEach((child: any) => {
 | 
	
		
			
				|  |  |            const i = child.childrenList;
 | 
	
		
			
				|  |  | -          i.forEach((j: any) => {
 | 
	
		
			
				|  |  | -            j.label = j.name;
 | 
	
		
			
				|  |  | -            j.value = j.id;
 | 
	
		
			
				|  |  | -          });
 | 
	
		
			
				|  |  | +          if (i && i.length > 0) {
 | 
	
		
			
				|  |  | +            i.forEach((j: any) => {
 | 
	
		
			
				|  |  | +              j.label = j.name;
 | 
	
		
			
				|  |  | +              j.value = j.id;
 | 
	
		
			
				|  |  | +            });
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +            i.unshift({
 | 
	
		
			
				|  |  | +              label: '全部',
 | 
	
		
			
				|  |  | +              value: child.id,
 | 
	
		
			
				|  |  | +              name: child.name,
 | 
	
		
			
				|  |  | +              id: child.id
 | 
	
		
			
				|  |  | +            });
 | 
	
		
			
				|  |  | +          }
 | 
	
		
			
				|  |  |          });
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          return (
 | 
	
	
		
			
				|  | @@ -70,7 +79,6 @@ export default defineComponent({
 | 
	
		
			
				|  |  |        return [];
 | 
	
		
			
				|  |  |      });
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -    console.log(props.categoryChildList, 'categoryChildList');
 | 
	
		
			
				|  |  |      return () => (
 | 
	
		
			
				|  |  |        <div class={styles.searchGroup}>
 | 
	
		
			
				|  |  |          <div
 | 
	
	
		
			
				|  | @@ -80,8 +88,14 @@ export default defineComponent({
 | 
	
		
			
				|  |  |            ]}>
 | 
	
		
			
				|  |  |            <NSpace size="small" class={styles.btnType}>
 | 
	
		
			
				|  |  |              <NButton
 | 
	
		
			
				|  |  | -              type={forms.wikiCategoryId === '' ? 'primary' : 'default'}
 | 
	
		
			
				|  |  | -              secondary={forms.wikiCategoryId === '' ? false : true}
 | 
	
		
			
				|  |  | +              type={
 | 
	
		
			
				|  |  | +                forms.wikiCategoryId === props.wikiCategoryId
 | 
	
		
			
				|  |  | +                  ? 'primary'
 | 
	
		
			
				|  |  | +                  : 'default'
 | 
	
		
			
				|  |  | +              }
 | 
	
		
			
				|  |  | +              secondary={
 | 
	
		
			
				|  |  | +                forms.wikiCategoryId === props.wikiCategoryId ? false : true
 | 
	
		
			
				|  |  | +              }
 | 
	
		
			
				|  |  |                round
 | 
	
		
			
				|  |  |                size="small"
 | 
	
		
			
				|  |  |                focusable={false}
 | 
	
	
		
			
				|  | @@ -109,7 +123,7 @@ export default defineComponent({
 | 
	
		
			
				|  |  |            </NSpace>
 | 
	
		
			
				|  |  |            <TheSearch
 | 
	
		
			
				|  |  |              class={styles.inputSearch}
 | 
	
		
			
				|  |  | -            placeholder="请输入曲目鉴赏关键词"
 | 
	
		
			
				|  |  | +            placeholder="请输入名曲鉴赏关键词"
 | 
	
		
			
				|  |  |              round
 | 
	
		
			
				|  |  |              onSearch={(val: string) => {
 | 
	
		
			
				|  |  |                forms.keyword = val;
 | 
	
	
		
			
				|  | @@ -126,7 +140,7 @@ export default defineComponent({
 | 
	
		
			
				|  |  |                    {music.childrenList.length > 0 ? (
 | 
	
		
			
				|  |  |                      <NPopselect
 | 
	
		
			
				|  |  |                        options={music.childrenList}
 | 
	
		
			
				|  |  | -                      trigger="click"
 | 
	
		
			
				|  |  | +                      trigger="hover"
 | 
	
		
			
				|  |  |                        v-model:value={forms.wikiCategoryIdChild}
 | 
	
		
			
				|  |  |                        onUpdate:value={() => {
 | 
	
		
			
				|  |  |                          onSearch();
 | 
	
	
		
			
				|  | @@ -141,6 +155,7 @@ export default defineComponent({
 | 
	
		
			
				|  |  |                          ]}>
 | 
	
		
			
				|  |  |                          {selectChildObj(music.childrenList, index).name ||
 | 
	
		
			
				|  |  |                            music.name}
 | 
	
		
			
				|  |  | +                        <i class={styles.iconArrow}></i>
 | 
	
		
			
				|  |  |                        </span>
 | 
	
		
			
				|  |  |                      </NPopselect>
 | 
	
		
			
				|  |  |                    ) : (
 |