This commit is contained in:
@@ -31,7 +31,7 @@ export default {
|
||||
async created() {
|
||||
let vm = this;
|
||||
try {
|
||||
initForm(vm);
|
||||
await initForm(vm);
|
||||
|
||||
vm.rights = window.$gz.role.getRights(window.$gz.type.UserOptions);
|
||||
vm.formState.ready = true;
|
||||
|
||||
@@ -206,7 +206,7 @@ export default {
|
||||
async created() {
|
||||
let vm = this;
|
||||
try {
|
||||
initForm(vm);
|
||||
await initForm(vm);
|
||||
vm.rights = window.$gz.role.getRights(window.$gz.type.License);
|
||||
generateMenu(vm);
|
||||
vm.formState.loading = false;
|
||||
@@ -555,7 +555,7 @@ function generateMenu(vm) {
|
||||
/////////////////////////////////
|
||||
//
|
||||
//
|
||||
function initForm(vm) {
|
||||
async function initForm(vm) {
|
||||
return new Promise(async function(resolve, reject) {
|
||||
// (async function() {
|
||||
try {
|
||||
|
||||
@@ -130,7 +130,7 @@ export default {
|
||||
async created() {
|
||||
let vm = this;
|
||||
try {
|
||||
initForm(vm);
|
||||
await initForm(vm);
|
||||
vm.formState.ready = true;
|
||||
window.$gz.eventBus.$on("menu-click", clickHandler);
|
||||
generateMenu(vm);
|
||||
|
||||
@@ -80,7 +80,7 @@ export default {
|
||||
async created() {
|
||||
let vm = this;
|
||||
try {
|
||||
initForm(vm);
|
||||
await initForm(vm);
|
||||
|
||||
vm.formState.readOnly = !vm.rights.change;
|
||||
window.$gz.eventBus.$on("menu-click", clickHandler);
|
||||
|
||||
Reference in New Issue
Block a user