Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
DC-TOM
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘照晖
DC-TOM
Commits
ee53da0e
Commit
ee53da0e
authored
Jul 02, 2025
by
Cai Wei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore(*): 屏蔽权限校验
parent
f40f1227
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
permissionChecker.js
src/utils/permissionChecker.js
+10
-10
index.vue
src/views/intermediate/index.vue
+2
-2
No files found.
src/utils/permissionChecker.js
View file @
ee53da0e
...
...
@@ -10,18 +10,18 @@ let previousPermissionData = null;
* @param {Number} interval - 轮询间隔,默认10000ms
*/
export
function
startPermissionCheck
(
interval
=
5000
)
{
// 如果已经存在轮询,先清除
if
(
permissionInterval
)
{
clearInterval
(
permissionInterval
);
}
//
//
如果已经存在轮询,先清除
//
if (permissionInterval) {
//
clearInterval(permissionInterval);
//
}
// 初始化获取一次权限数据
checkUserPermission
();
//
//
初始化获取一次权限数据
//
checkUserPermission();
// 设置定时轮询
permissionInterval
=
setInterval
(()
=>
{
checkUserPermission
();
},
interval
);
//
//
设置定时轮询
//
permissionInterval = setInterval(() => {
//
checkUserPermission();
//
}, interval);
}
/**
...
...
src/views/intermediate/index.vue
View file @
ee53da0e
...
...
@@ -18,8 +18,8 @@ const router = useRouter();
const
iframeRef
=
ref
(
null
);
// const url = `http://172.16.20.227/admin/ecoTom/#/ecoDashboard
?token=${getToken("TOKEN")}`
const
url
=
`https://screen.bmetech.com/steelmakingScreen/#/robotNew?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")}`
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment