소스 검색

avoid error when loading

pull/68/head
Jonathan Cobb 4 년 전
부모
커밋
6b04363c9c
1개의 변경된 파일7개의 추가작업 그리고 5개의 파일을 삭제
  1. +7
    -5
      src/_pages/main/account/MyAccount.vue

+ 7
- 5
src/_pages/main/account/MyAccount.vue 파일 보기

@@ -71,12 +71,14 @@ export default {
manage_account_actions: function () {
if (this.messages) {
const account_actions = this.configs.bubbleNode === true ? 'manage_account_node_actions' : 'manage_account_sage_actions';
const actions = this.messages[account_actions].split(',');
if (this.currentUser.admin && this.currentUser.firstAdmin) {
const delete_index = actions.indexOf('delete');
if (delete_index !== -1) actions.splice(delete_index, 1);
if (this.messages[account_actions]) {
const actions = this.messages[account_actions].split(',');
if (this.currentUser.admin && this.currentUser.firstAdmin) {
const delete_index = actions.indexOf('delete');
if (delete_index !== -1) actions.splice(delete_index, 1);
}
return actions;
}
return actions;
}
}
},


불러오는 중...
취소
저장