mirror of
				https://github.com/TeaOSLab/EdgeAdmin.git
				synced 2025-11-04 13:10:26 +08:00 
			
		
		
		
	UA名单功能增加“例外URL“和“限制URL”设置
This commit is contained in:
		@@ -18,7 +18,8 @@ Vue.component("user-agent-config-box", {
 | 
				
			|||||||
			addingFilter: {
 | 
								addingFilter: {
 | 
				
			||||||
				keywords: [],
 | 
									keywords: [],
 | 
				
			||||||
				action: "deny"
 | 
									action: "deny"
 | 
				
			||||||
			}
 | 
								},
 | 
				
			||||||
 | 
								moreOptionsVisible: false
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	},
 | 
						},
 | 
				
			||||||
	methods: {
 | 
						methods: {
 | 
				
			||||||
@@ -63,6 +64,9 @@ Vue.component("user-agent-config-box", {
 | 
				
			|||||||
		},
 | 
							},
 | 
				
			||||||
		changeKeywords: function (keywords) {
 | 
							changeKeywords: function (keywords) {
 | 
				
			||||||
			this.addingFilter.keywords = keywords
 | 
								this.addingFilter.keywords = keywords
 | 
				
			||||||
 | 
							},
 | 
				
			||||||
 | 
							showMoreOptions: function () {
 | 
				
			||||||
 | 
								this.moreOptionsVisible = !this.moreOptionsVisible
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	},
 | 
						},
 | 
				
			||||||
	template: `<div>
 | 
						template: `<div>
 | 
				
			||||||
@@ -135,6 +139,25 @@ Vue.component("user-agent-config-box", {
 | 
				
			|||||||
					</div>
 | 
										</div>
 | 
				
			||||||
				</td>
 | 
									</td>
 | 
				
			||||||
			</tr>
 | 
								</tr>
 | 
				
			||||||
 | 
								<tr>
 | 
				
			||||||
 | 
									<td colspan="2"><more-options-indicator @change="showMoreOptions"></more-options-indicator></td>
 | 
				
			||||||
 | 
								</tr>
 | 
				
			||||||
 | 
							</tbody>
 | 
				
			||||||
 | 
							<tbody v-show="moreOptionsVisible && isOn()">
 | 
				
			||||||
 | 
								<tr>
 | 
				
			||||||
 | 
									<td>例外URL</td>
 | 
				
			||||||
 | 
									<td>
 | 
				
			||||||
 | 
										<url-patterns-box v-model="config.exceptURLPatterns"></url-patterns-box>
 | 
				
			||||||
 | 
										<p class="comment">如果填写了例外URL,表示这些URL跳过5秒盾不做处理。</p>
 | 
				
			||||||
 | 
									</td>
 | 
				
			||||||
 | 
								</tr>
 | 
				
			||||||
 | 
								<tr>
 | 
				
			||||||
 | 
									<td>限制URL</td>
 | 
				
			||||||
 | 
									<td>
 | 
				
			||||||
 | 
										<url-patterns-box v-model="config.onlyURLPatterns"></url-patterns-box>
 | 
				
			||||||
 | 
										<p class="comment">如果填写了限制URL,表示只对这些URL进行5秒盾处理;如果不填则表示支持所有的URL。</p>
 | 
				
			||||||
 | 
									</td>
 | 
				
			||||||
 | 
								</tr>
 | 
				
			||||||
		</tbody>
 | 
							</tbody>
 | 
				
			||||||
	</table>
 | 
						</table>
 | 
				
			||||||
	<div class="margin"></div>
 | 
						<div class="margin"></div>
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user