mirror of
				https://github.com/whyour/qinglong.git
				synced 2025-11-04 02:56:07 +08:00 
			
		
		
		
	修复粘贴订阅私有仓库字段
This commit is contained in:
		
							parent
							
								
									05d47be1c8
								
							
						
					
					
						commit
						15678b029c
					
				| 
						 | 
					@ -204,13 +204,15 @@ const SubscriptionModal = ({
 | 
				
			||||||
      ] = text
 | 
					      ] = text
 | 
				
			||||||
        .split(' ')
 | 
					        .split(' ')
 | 
				
			||||||
        .map((x) => x.trim().replace(/\"/g, '').replace(/\'/, ''));
 | 
					        .map((x) => x.trim().replace(/\"/g, '').replace(/\'/, ''));
 | 
				
			||||||
 | 
					      const _type =
 | 
				
			||||||
 | 
					        type === 'raw'
 | 
				
			||||||
 | 
					          ? 'file'
 | 
				
			||||||
 | 
					          : url.startsWith('http')
 | 
				
			||||||
 | 
					          ? 'public-repo'
 | 
				
			||||||
 | 
					          : 'private-repo';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      form.setFieldsValue({
 | 
					      form.setFieldsValue({
 | 
				
			||||||
        type:
 | 
					        type: _type,
 | 
				
			||||||
          type === 'raw'
 | 
					 | 
				
			||||||
            ? 'file'
 | 
					 | 
				
			||||||
            : url.startsWith('http')
 | 
					 | 
				
			||||||
            ? 'public-repo'
 | 
					 | 
				
			||||||
            : 'private-repo',
 | 
					 | 
				
			||||||
        url,
 | 
					        url,
 | 
				
			||||||
        whitelist,
 | 
					        whitelist,
 | 
				
			||||||
        blacklist,
 | 
					        blacklist,
 | 
				
			||||||
| 
						 | 
					@ -219,6 +221,7 @@ const SubscriptionModal = ({
 | 
				
			||||||
        extensions,
 | 
					        extensions,
 | 
				
			||||||
        alias: formatAlias(url, branch),
 | 
					        alias: formatAlias(url, branch),
 | 
				
			||||||
      });
 | 
					      });
 | 
				
			||||||
 | 
					      setType(_type);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  }, []);
 | 
					  }, []);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user