feat(shopOrder): 订单提醒时同步刷新列表数据
- Dashboard 欢迎横幅标题改为显示当前用户租户名称 - useOrderNotify 新增 onNewOrder 回调参数 - 新订单提醒触发时调用 onNewOrder 回调刷新表格数据 - shopOrder 页面调用 useOrderNotify 时传入刷新回调 - 保证新订单提醒时语音播放与表格数据同步更新
This commit is contained in:
@@ -398,7 +398,9 @@
|
||||
const activeKey = ref<string>('undelivered');
|
||||
|
||||
// ============ 新订单提醒 ============
|
||||
const { enabled: notifyEnabled, toggle: onNotifyToggle, testNotify: onTestNotify } = useOrderNotify();
|
||||
const { enabled: notifyEnabled, toggle: onNotifyToggle, testNotify: onTestNotify } = useOrderNotify({
|
||||
onNewOrder: () => reload()
|
||||
});
|
||||
// 表格数据源
|
||||
const datasource: DatasourceFunction = ({
|
||||
page,
|
||||
|
||||
Reference in New Issue
Block a user