Commit 898bf4a355de65d327cd31a46263c1685cf388d5
1 parent
fa29b2d9
'最新'
Showing
2 changed files
with
7 additions
and
4 deletions
admin-web-master/dist (2).zip
0 → 100644
No preview for this file type
admin-web-master/src/layout/index.vue
| ... | ... | @@ -166,9 +166,8 @@ |
| 166 | 166 | import { |
| 167 | 167 | uploadUrl |
| 168 | 168 | } from '@/utils/request' |
| 169 | - import userData from '@/assets/lockhost.js'; | |
| 169 | + // import userData from '@/assets/lockhost.js'; | |
| 170 | 170 | export default { |
| 171 | - | |
| 172 | 171 | data() { |
| 173 | 172 | const newPassFn = (rule, value, callback) => { |
| 174 | 173 | if (value === '') { |
| ... | ... | @@ -481,8 +480,12 @@ |
| 481 | 480 | |
| 482 | 481 | }, |
| 483 | 482 | getMemu() { |
| 484 | - console.log(userData, 'userData') | |
| 485 | - let res = JSON.parse(localStorage.getItem('user')); | |
| 483 | + // console.log(userData, 'userData') | |
| 484 | + let userData = JSON.parse(localStorage.getItem('user')); | |
| 485 | + if(!userData){ | |
| 486 | + window.location.href = 'https://admin-uat.028wlkj.com:1020/login'; | |
| 487 | + } | |
| 488 | + console.log(userData, 'res') | |
| 486 | 489 | localStorage.setItem('roleName',userData.user.name) |
| 487 | 490 | this.name=userData.user.name |
| 488 | 491 | let ArrLu = [] | ... | ... |