odoo 提示通知

import { registry } from "@web/core/registry";
const myService = {
    dependencies: ["notification"],
    start(env, { notification }) {
        let counter = 1;
        setInterval(() => {
            notification.add(`Tick Tock ${counter++}`);
        }, 5000);
    },
};
registry.category("services").add("myService", myService);

  

posted @ 2023-04-21 14:55  CrossPython  阅读(50)  评论(0编辑  收藏  举报