|
|
@ -31,6 +31,7 @@ |
|
|
|
|
|
|
|
<script> |
|
|
|
import SubMenu from "./main-sidebar-sub-menu"; |
|
|
|
import jointUrl from "dai-js/tools/jointUrl"; |
|
|
|
export default { |
|
|
|
name: "sub-menu", |
|
|
|
props: { |
|
|
@ -50,7 +51,13 @@ export default { |
|
|
|
)[0]; |
|
|
|
if (route) { |
|
|
|
console.log(route); |
|
|
|
if (route.meta.iframeURL.endsWith("【跳转新页面】")) { |
|
|
|
if (route.meta.iframeURL.endsWith("【跳转新页面免登】")) { |
|
|
|
window.open( |
|
|
|
jointUrl(route.meta.iframeURL.slice(0, -9), { |
|
|
|
token: localStorage.getItem("token"), |
|
|
|
}) |
|
|
|
); |
|
|
|
} else if (route.meta.iframeURL.endsWith("【跳转新页面】")) { |
|
|
|
window.open(route.meta.iframeURL.slice(0, -7)); |
|
|
|
} else { |
|
|
|
this.$router.push({ name: route.name }); |
|
|
|