fix mobile

This commit is contained in:
Ivan Office
2024-08-19 23:29:18 +08:00
parent 0cdb624d8c
commit f77b6c4e58
2 changed files with 16 additions and 1 deletions

View File

@@ -94,7 +94,7 @@ patch(UserMenu.prototype, {
browser.clearTimeout(self.toggleTimer);
if (self.user_lang !== lang_code) {
const res = await self.orm.call("res.users", "write", [
session.uid, {'lang': lang_code}
session.user_id[0], {'lang': lang_code}
]);
location.reload();
// 调用 action , 要先定义 self.action = useService("action")