update 新增了全局静态变量
This commit is contained in:
@@ -42,6 +42,8 @@ import Setting from './setting';
|
||||
import { setGlobal } from '@/common/login';
|
||||
import { APP_MENU_KEY } from '@/common/storage';
|
||||
|
||||
import { EMPTY_ID } from '@/util/global';
|
||||
|
||||
const getNewID = () => {
|
||||
return Math.random().toString(16).slice(2);
|
||||
};
|
||||
@@ -260,9 +262,7 @@ export default {
|
||||
return m;
|
||||
};
|
||||
|
||||
const rootId = '00000000-0000-0000-0000-000000000000';
|
||||
|
||||
this.nav.menus = children[rootId] ? serialize(children[rootId]) : new Array();
|
||||
this.nav.menus = children[EMPTY_ID] ? serialize(children[EMPTY_ID]) : new Array();
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user