mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
fix #I947G2 17版本的app_odoo_customize优化,debug菜单
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user