salix/modules/monitor/front/main/index.js

19 lines
440 B
JavaScript
Raw Normal View History

2021-05-04 10:44:21 +00:00
import ngModule from '../module';
import ModuleMain from 'salix/components/module-main';
2024-08-19 14:29:36 +00:00
export default class Monitor extends ModuleMain {
constructor($element, $) {
super($element, $);
}
async $onInit() {
this.$state.go('home');
window.location.href = await this.vnApp.getUrl(`monitor/`);
}
}
2021-05-04 10:44:21 +00:00
ngModule.vnComponent('vnMonitor', {
controller: Monitor,
template: require('./index.html')
});