|
@@ -249,16 +249,19 @@ export default {
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
this.tenantNumber = JSON.parse(localStorage.getItem('saber-tenantId')).content
|
|
this.tenantNumber = JSON.parse(localStorage.getItem('saber-tenantId')).content
|
|
- //从缓存中获取所有路由信息
|
|
|
|
- this.$nextTick(data => {
|
|
|
|
- let menu = JSON.parse(localStorage.getItem("saber-menuAll")).content
|
|
|
|
- for (let item of menu){
|
|
|
|
- this.menuAll.push(item.id)
|
|
|
|
- if (item.children.length > 0){
|
|
|
|
- this.getMenuId(item.children)
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
|
|
+ //从缓存中获取所有路由信息
|
|
|
|
+ setTimeout(data=>{
|
|
|
|
+ let menu = JSON.parse(localStorage.getItem("saber-menuAll")).content
|
|
|
|
+ for (let item of menu){
|
|
|
|
+ this.menuAll.push(item.id)
|
|
|
|
+ if (item.children.length > 0){
|
|
|
|
+ this.getMenuId(item.children)
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },600)
|
|
|
|
+ // this.$nextTick(data => {
|
|
|
|
+ //
|
|
|
|
+ // })
|
|
if (this.sysType == 2) {
|
|
if (this.sysType == 2) {
|
|
this.getWorkDicts('large_screen').then(res => {
|
|
this.getWorkDicts('large_screen').then(res => {
|
|
this.largeScreenToken = res.data.data[0].dictKey;
|
|
this.largeScreenToken = res.data.data[0].dictKey;
|