mirror of https://github.com/shunfei/cronsun
修复分页组件不显示bug
parent
b79b248190
commit
ff490592a6
|
@ -6,18 +6,12 @@ import (
|
||||||
"sunteng/cronsun/conf"
|
"sunteng/cronsun/conf"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Configuration struct {
|
type Configuration struct{}
|
||||||
Security *conf.Security `json:"security"`
|
|
||||||
}
|
|
||||||
|
|
||||||
func NewConfiguration() *Configuration {
|
|
||||||
cnf := &Configuration{
|
|
||||||
Security: conf.Config.Security,
|
|
||||||
}
|
|
||||||
|
|
||||||
return cnf
|
|
||||||
}
|
|
||||||
|
|
||||||
func (cnf *Configuration) Configuratios(w http.ResponseWriter, r *http.Request) {
|
func (cnf *Configuration) Configuratios(w http.ResponseWriter, r *http.Request) {
|
||||||
outJSON(w, cnf)
|
outJSON(w, struct {
|
||||||
|
Security *conf.Security `json:"security"`
|
||||||
|
}{
|
||||||
|
Security: conf.Config.Security,
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,7 +14,7 @@ func InitRouters() (s *http.Server, err error) {
|
||||||
nodeHandler := &Node{}
|
nodeHandler := &Node{}
|
||||||
jobLogHandler := &JobLog{}
|
jobLogHandler := &JobLog{}
|
||||||
infoHandler := &Info{}
|
infoHandler := &Info{}
|
||||||
configHandler := NewConfiguration()
|
configHandler := &Configuration{}
|
||||||
|
|
||||||
r := mux.NewRouter()
|
r := mux.NewRouter()
|
||||||
subrouter := r.PathPrefix("/v1").Subrouter()
|
subrouter := r.PathPrefix("/v1").Subrouter()
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -66,8 +66,8 @@
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<ExecuteJob ref="executeJobModal">
|
|
||||||
<Pager v-if="list && list.length>0" :total="total" :length="5"/>
|
<Pager v-if="list && list.length>0" :total="total" :length="5"/>
|
||||||
|
<ExecuteJob ref="executeJobModal"/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue