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

18 lines
431 B
JavaScript
Raw Permalink Normal View History

2024-06-11 10:28:49 +00:00
import ngModule from '../module';
import ModuleMain from 'salix/components/module-main';
export default class Entry extends ModuleMain {
constructor($element, $) {
super($element, $);
}
async $onInit() {
this.$state.go('home');
window.location.href = await this.vnApp.getUrl(`entry/`);
}
}
ngModule.vnComponent('vnEntry', {
controller: Entry,
template: require('./index.html')
});