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

18 lines
430 B
JavaScript
Raw Normal View History

import ngModule from '../module';
import ModuleMain from 'salix/components/module-main';
export default class User extends ModuleMain {
constructor($element, $) {
super($element, $);
}
async $onInit() {
this.$state.go('home');
window.location.href = await this.vnApp.getUrl(`account/`);
}
}
ngModule.vnComponent('vnUser', {
controller: User,
template: require('./index.html')
});