|
@@ -1684,7 +1684,8 @@ export default {
|
|
},
|
|
},
|
|
smartScreen(){
|
|
smartScreen(){
|
|
currentLogin().then(res=>{
|
|
currentLogin().then(res=>{
|
|
- if (res.data.userName === 'admin'){
|
|
|
|
|
|
+ const role = res.data.roles.some(item => item.roleKey == 'admin' || item.roleKey == 'IDC')
|
|
|
|
+ if (role){
|
|
this.getConfigKey("large.screen").then((response) => {
|
|
this.getConfigKey("large.screen").then((response) => {
|
|
if (response.msg) {
|
|
if (response.msg) {
|
|
window.open( 'http://119.3.74.195:9527/view/'+ response.msg +'?Authorization=' + getToken())
|
|
window.open( 'http://119.3.74.195:9527/view/'+ response.msg +'?Authorization=' + getToken())
|