mirror of
				https://github.com/TeaOSLab/EdgeAdmin.git
				synced 2025-11-04 05:00:25 +08:00 
			
		
		
		
	修复TLS证书配置时无法删除证书的问题
This commit is contained in:
		@@ -78,7 +78,7 @@ Vue.component("ssl-certs-box", {
 | 
			
		||||
	<input type="hidden" name="certIdsJSON" :value="JSON.stringify(certIds())"/>
 | 
			
		||||
	<div v-if="certs != null && certs.length > 0">
 | 
			
		||||
		<div class="ui label small" v-for="(cert, index) in certs">
 | 
			
		||||
			{{cert.name}} / {{cert.dnsNames}} / 有效至{{formatTime(cert.timeEndAt)}}   <a href="" title="删除" @click.prevent="removeCert()"><i class="icon remove"></i></a>
 | 
			
		||||
			{{cert.name}} / {{cert.dnsNames}} / 有效至{{formatTime(cert.timeEndAt)}}   <a href="" title="删除" @click.prevent="removeCert(index)"><i class="icon remove"></i></a>
 | 
			
		||||
		</div>
 | 
			
		||||
		<div class="ui divider" v-if="buttonsVisible()"></div>
 | 
			
		||||
	</div>
 | 
			
		||||
 
 | 
			
		||||
@@ -354,7 +354,7 @@ Vue.component("ssl-config-box", {
 | 
			
		||||
				<td>
 | 
			
		||||
					<div v-if="policy.certs != null && policy.certs.length > 0">
 | 
			
		||||
						<div class="ui label small" v-for="(cert, index) in policy.certs">
 | 
			
		||||
							{{cert.name}} / {{cert.dnsNames}} / 有效至{{formatTime(cert.timeEndAt)}}   <a href="" title="删除" @click.prevent="removeCert()"><i class="icon remove"></i></a>
 | 
			
		||||
							{{cert.name}} / {{cert.dnsNames}} / 有效至{{formatTime(cert.timeEndAt)}}   <a href="" title="删除" @click.prevent="removeCert(index)"><i class="icon remove"></i></a>
 | 
			
		||||
						</div>
 | 
			
		||||
						<div class="ui divider"></div>
 | 
			
		||||
					</div>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user