修复分页组件不显示bug

pull/1/head
Doflatango 8 years ago committed by miraclesu
parent b79b248190
commit ff490592a6

@ -6,18 +6,12 @@ import (
"sunteng/cronsun/conf"
)
type Configuration struct {
Security *conf.Security `json:"security"`
}
func NewConfiguration() *Configuration {
cnf := &Configuration{
Security: conf.Config.Security,
}
return cnf
}
type Configuration struct{}
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{}
jobLogHandler := &JobLog{}
infoHandler := &Info{}
configHandler := NewConfiguration()
configHandler := &Configuration{}
r := mux.NewRouter()
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>
</tbody>
</table>
<ExecuteJob ref="executeJobModal">
<Pager v-if="list && list.length>0" :total="total" :length="5"/>
<ExecuteJob ref="executeJobModal"/>
</div>
</template>

Loading…
Cancel
Save