34 lines
1.0 KiB
HTML
34 lines
1.0 KiB
HTML
<%+header%>
|
||
|
||
<script>
|
||
(function(){
|
||
})();
|
||
</script>
|
||
<div id="app">
|
||
</div>
|
||
|
||
<script>
|
||
window.IstoreosFormConfig = {
|
||
getApi:"/cgi-bin/luci/admin/services/nastools/form/",
|
||
logApi:"/cgi-bin/luci/admin/services/nastools/log",
|
||
submitApi:"/cgi-bin/luci/admin/services/nastools/submit",
|
||
getHook:function(resp){
|
||
var c1 = resp.result.schema.containers[0];
|
||
var idx = 1;
|
||
if (resp.result.data.container_install) {
|
||
c1.labels[idx].value = '<a href="http://'+location.hostname+':'+resp.result.data.http_port+'" target="_blank">打开 NasTools</a>(默认用户名/密码:admin/password)';
|
||
} else {
|
||
c1.labels[idx].value = "安装并运行之后,才能用网页访问";
|
||
}
|
||
return resp;
|
||
},
|
||
submitHook:function(params){
|
||
return params;
|
||
}
|
||
}
|
||
</script>
|
||
<script type="module" crossorigin src="/luci-static/iform/1.0/index.js?v=<%=math.random(1,100000)%>"></script>
|
||
<link rel="stylesheet" href="/luci-static/iform/1.0/style.css?v=<%=math.random(1,100000)%>">
|
||
|
||
<%+footer%>
|