提交 374e77d5 authored 作者: lidongxu's avatar lidongxu

test(jimu): 测试:积木报表权限拦截回调地址测试

上级 fc66dbf8
...@@ -61,6 +61,7 @@ router.beforeEach((to, from, next) => { ...@@ -61,6 +61,7 @@ router.beforeEach((to, from, next) => {
if (isWhiteList(to.path)) { if (isWhiteList(to.path)) {
next() next()
} else { } else {
console.log('登录未遂地址', to.fullPath)
next(`/login?redirect=${to.fullPath}`) next(`/login?redirect=${to.fullPath}`)
NProgress.done() NProgress.done()
} }
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
<script setup> <script setup>
const reportBaseDomain = import.meta.env.VITE_APP_REPORT_URL // 基础域名 const reportBaseDomain = import.meta.env.VITE_APP_REPORT_URL // 基础域名
const route = useRoute() const route = useRoute()
console.log(route, route.fullPath)
const openUrl = reportBaseDomain + route.fullPath const openUrl = reportBaseDomain + route.fullPath
</script> </script>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论