Commit cc73f1ab by 胡悦

Merge branch 'v1.6.0' into 'develop'

V1.6.0已上线,代码合并

See merge request !5
2 parents ce81c235 9fb0c489
...@@ -46,7 +46,13 @@ export default { ...@@ -46,7 +46,13 @@ export default {
let showLoading = computed(() => { let showLoading = computed(() => {
return store.getters.showLoading; return store.getters.showLoading;
}) })
// 判断页面是否通过window.open 打开(v1.7.0版本地图页面操作是打开新窗口 将菜单栏隐藏)
// if (window.opener) {
// const store = useStore()
// store.state.collapsed = true
// store.dispatch('app/setCollapsed', true)
// actions.setGlobalState({ isCollapsed: true })
// }
return { return {
hasToken, hasToken,
showLoading showLoading
......
...@@ -89,16 +89,6 @@ export default { ...@@ -89,16 +89,6 @@ export default {
menuIcon: require("@/assets/images/icon/setting-icon.png"), menuIcon: require("@/assets/images/icon/setting-icon.png"),
}); });
console.log(store.state) console.log(store.state)
watch(() => store.state.menu.updateMenu, (n,o) => {
console.log("监听菜单更新");
console.log(n);
if(n){
//getMenuAuth()
}
},{
immediate:true,
deep:true
});
// 点击主菜单标题 // 点击主菜单标题
const titleClick = (item, idx) => { const titleClick = (item, idx) => {
...@@ -172,9 +162,11 @@ export default { ...@@ -172,9 +162,11 @@ export default {
cItem.subItemActive = true; cItem.subItemActive = true;
path = filterPath(path); path = filterPath(path);
console.log(path)
if (path === "/noData") { if (path === "/noData") {
showEmpty = true; showEmpty = true;
} }
let breadcrumb = [ let breadcrumb = [
{ {
name: pOrigin.menuName, name: pOrigin.menuName,
...@@ -185,6 +177,7 @@ export default { ...@@ -185,6 +177,7 @@ export default {
path: cOrigin.frontRoute, path: cOrigin.frontRoute,
}, },
]; ];
console.log('breadcrumb',breadcrumb)
getMenuAuth(cItem.id, cOrigin.menuName); getMenuAuth(cItem.id, cOrigin.menuName);
store.dispatch("app/setCommonData", { showEmpty }); store.dispatch("app/setCommonData", { showEmpty });
store.dispatch("menu/setBreadCrumb", breadcrumb); store.dispatch("menu/setBreadCrumb", breadcrumb);
...@@ -287,8 +280,10 @@ export default { ...@@ -287,8 +280,10 @@ export default {
if (!path || path == "/noData") { if (!path || path == "/noData") {
showEmpty = true; showEmpty = true;
} }
console.log('刷新进入此处')
name && getMenuAuth(id, name); name && getMenuAuth(id, name);
history.pushState({ breadcrumb: curBreadcrumb }, path, path); //v1.6.0版本临时注释,有问题 再放开
//history.pushState({ breadcrumb: curBreadcrumb }, path, path);
store.dispatch("app/setCommonData", { showEmpty }); store.dispatch("app/setCommonData", { showEmpty });
} else { } else {
let firstList = state.menuList[0]; let firstList = state.menuList[0];
......
...@@ -101,6 +101,9 @@ export const Common = { ...@@ -101,6 +101,9 @@ export const Common = {
}, },
// 公共页面跳转方法 // 公共页面跳转方法
navigateTo:function(options){
}
} }
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<div class="container"> <div class="container">
<desktop-left-sider></desktop-left-sider> <desktop-left-sider></desktop-left-sider>
<el-container direction="vertical" id="desktop-right-sider"> <el-container direction="vertical" id="desktop-right-sider">
<desktop-top-sider></desktop-top-sider> <desktop-top-sider v-if="isShowTopSider"></desktop-top-sider>
<desktop-right-sider></desktop-right-sider> <desktop-right-sider></desktop-right-sider>
</el-container> </el-container>
</div> </div>
...@@ -30,11 +30,20 @@ export default { ...@@ -30,11 +30,20 @@ export default {
DesktopTopSider, DesktopTopSider,
DesktopRightSider DesktopRightSider
}, },
data () {
return {
isShowTopSider: true
}
},
created () {
if (window.opener) {
this.isShowTopSider = false
}
},
setup () { setup () {
const state = reactive({ const state = reactive({
collapsed: false collapsed: false
}); });
const getCollapsed = (data) => { const getCollapsed = (data) => {
console.log(data); console.log(data);
state.collapsed = data; state.collapsed = data;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!