fix #I947G2 17版本的app_odoo_customize优化,debug菜单

This commit is contained in:
Chill
2024-02-29 17:50:18 +08:00
parent 620059d05c
commit 556a48f9d9
4 changed files with 54 additions and 50 deletions

View File

@@ -4,11 +4,11 @@ import { WebClient } from "@web/webclient/webclient";
import { patch } from "@web/core/utils/patch";
import { session } from "@web/session";
patch(WebClient.prototype, "app_odoo_customize.WebClient", {
patch(WebClient.prototype, {
setup() {
// 处理 navbar 全局可配置位置
var self = this;
self._super.apply(this, arguments);
super.setup();
this.state.navbar_pos_pc = session.app_navbar_pos_pc || 'top';
this.state.navbar_pos_mobile = session.app_navbar_pos_mobile || 'top';
if (self.env.isSmall)