mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-12-15 20:56:35 +08:00
实现Web静态文件分发
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
{$layout}
|
||||
|
||||
{$template "/left_menu"}
|
||||
|
||||
<div class="right-box">
|
||||
@@ -8,15 +7,8 @@
|
||||
|
||||
<div class="right-box tiny">
|
||||
<form class="ui form" data-tea-success="success" data-tea-action="$">
|
||||
<input type="hidden" name="webId" :value="webConfig.id"/>
|
||||
<table class="ui table selectable definition">
|
||||
<tr>
|
||||
<td class="title">Web目录</td>
|
||||
<td>
|
||||
<input type="text" name="root" v-model="webConfig.root" ref="focus"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type="hidden" name="webId" :value="webId"/>
|
||||
<http-web-root-box :v-root-config="rootConfig" :v-is-location="true"></http-web-root-box>
|
||||
<submit-btn></submit-btn>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
{$layout "layout_popup"}
|
||||
<h3>添加首页文件</h3>
|
||||
<form class="ui form" data-tea-action="$" data-tea-success="success">
|
||||
<table class="ui table selectable definition">
|
||||
<tr>
|
||||
<td>首页文件名 *</td>
|
||||
<td><input type="text" name="index" maxlength="200" ref="focus"/></td>
|
||||
</tr>
|
||||
</table>
|
||||
<submit-btn></submit-btn>
|
||||
</form>
|
||||
@@ -0,0 +1,3 @@
|
||||
Tea.context(function () {
|
||||
this.success = NotifyPopup
|
||||
})
|
||||
@@ -4,16 +4,8 @@
|
||||
|
||||
<div class="right-box">
|
||||
<form class="ui form" data-tea-success="success" data-tea-action="$">
|
||||
<input type="hidden" name="serverId" :value="serverId"/>
|
||||
<input type="hidden" name="webId" :value="webConfig.id"/>
|
||||
<table class="ui table selectable definition">
|
||||
<tr>
|
||||
<td class="title">Web目录</td>
|
||||
<td>
|
||||
<input type="text" name="root" v-model="webConfig.root" ref="focus"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type="hidden" name="webId" :value="webId"/>
|
||||
<http-web-root-box :v-root-config="rootConfig"></http-web-root-box>
|
||||
<submit-btn></submit-btn>
|
||||
</form>
|
||||
</div>
|
||||
Reference in New Issue
Block a user