Commit ee53da0e authored by Cai Wei's avatar Cai Wei

chore(*): 屏蔽权限校验

parent f40f1227
...@@ -10,18 +10,18 @@ let previousPermissionData = null; ...@@ -10,18 +10,18 @@ let previousPermissionData = null;
* @param {Number} interval - 轮询间隔,默认10000ms * @param {Number} interval - 轮询间隔,默认10000ms
*/ */
export function startPermissionCheck(interval = 5000) { export function startPermissionCheck(interval = 5000) {
// 如果已经存在轮询,先清除 // // 如果已经存在轮询,先清除
if (permissionInterval) { // if (permissionInterval) {
clearInterval(permissionInterval); // clearInterval(permissionInterval);
} // }
// 初始化获取一次权限数据 // // 初始化获取一次权限数据
checkUserPermission(); // checkUserPermission();
// 设置定时轮询 // // 设置定时轮询
permissionInterval = setInterval(() => { // permissionInterval = setInterval(() => {
checkUserPermission(); // checkUserPermission();
}, interval); // }, interval);
} }
/** /**
......
...@@ -18,8 +18,8 @@ const router = useRouter(); ...@@ -18,8 +18,8 @@ const router = useRouter();
const iframeRef = ref(null); const iframeRef = ref(null);
// const url = `http://172.16.20.227/admin/ecoTom/#/ecoDashboard?token=${getToken("TOKEN")}` const url = `http://172.16.20.227/admin/ecoTom/#/robotNew?token=${getToken("TOKEN")}`
const url = `https://screen.bmetech.com/steelmakingScreen/#/robotNew?token=${getToken("TOKEN")}` // const url = `https://screen.bmetech.com/steelmakingScreen/#/robotNew?token=${getToken("TOKEN")}`
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment