mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-06 23:00:25 +08:00
服务增加是否合并URL中的多余分隔符选项
This commit is contained in:
30
web/public/js/components/server/http-common-config-box.js
Normal file
30
web/public/js/components/server/http-common-config-box.js
Normal file
@@ -0,0 +1,30 @@
|
||||
// 通用设置
|
||||
Vue.component("http-common-config-box", {
|
||||
props: ["v-common-config"],
|
||||
data: function () {
|
||||
let config = this.vCommonConfig
|
||||
if (config == null) {
|
||||
config = {
|
||||
mergeSlashes: false
|
||||
}
|
||||
}
|
||||
return {
|
||||
config: config
|
||||
}
|
||||
},
|
||||
template: `<div>
|
||||
<table class="ui table definition selectable">
|
||||
<tr>
|
||||
<td class="title">合并重复的路径分隔符</td>
|
||||
<td>
|
||||
<div class="ui checkbox">
|
||||
<input type="checkbox" name="mergeSlashes" value="1" v-model="config.mergeSlashes"/>
|
||||
<label></label>
|
||||
</div>
|
||||
<p class="comment">合并URL中重复的路径分隔符为一个,比如<code-label>//hello/world</code-label>中的<code-label>//</code-label>。</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div class="margin"></div>
|
||||
</div>`
|
||||
})
|
||||
Reference in New Issue
Block a user