update 嵌入其他系统隐藏菜单

This commit is contained in:
赵霄
2023-09-28 15:53:02 +08:00
parent 36f82eef73
commit e513b62b10
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -35,7 +35,7 @@
<!-- 下次优化这些代码 -->
<template v-else>
<a-drawer
v-if="device === 'mobile'"
v-if="device === 'mobile' && !isEmbedded"
:wrapClassName="'drawer-sider ' + navTheme"
placement="left"
@close="() => this.collapsed = false"
+1 -1
View File
@@ -14,7 +14,7 @@ whiteList.push(OAUTH2_LOGIN_PAGE_PATH)
router.beforeEach((to, from, next) => {
// 处理是否是嵌入其他系统,是需要隐藏左侧和上面,如果当前值是true,就不需要修改了
const isEmbedded = store.getters.isEmbedded
if (!isEmbedded && to.query.code === 'implant') {
if (!isEmbedded && to.query.source === 'implant') {
store.commit('SET_IS_EMBEDDED', true)
}
NProgress.start() // start progress bar