front/src/utils
zzh 25445bc146 feat: 完善日夜间主题与揽收下单体验
统一暗色模式页面/顶栏/Handsontable 选中色,调整下单到仓方式文案与提示,CustomLeftMenu 卡片统一 60px;补充揽收单、问题件处理与 H5 相关页面。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-04 11:49:23 +08:00
..
hiprint 20260427 2026-04-27 09:09:31 +08:00
adminApi.ts feat: 查价价卡展示贸易条款与产品分组,并优化 H5/登录与顾问体验 2026-07-30 11:48:36 +08:00
arco-icon-list.ts feat: 订单指引流程图、对客说明与查价/菜单体验优化 2026-07-09 15:17:33 +08:00
auth-keepalive.ts feat: 查价价卡展示贸易条款与产品分组,并优化 H5/登录与顾问体验 2026-07-30 11:48:36 +08:00
auth.ts feat: 完善三级按钮同步、我的订单与助手等前端能力 2026-07-07 12:36:18 +08:00
avatar.ts feat: 小红书模块迁移、登录重构与 xhs-agent-desktop 桌面 Agent 2026-06-30 16:13:13 +08:00
cargoAttribute.ts feat: 查价下单加固、待排货 UI 与 EnableStatus 对齐 2026-07-22 19:00:56 +08:00
confirm.ts Initial commit: Upload local project code 2025-10-27 11:52:54 +08:00
curlToInterfaceFill.ts 20260604 2026-06-04 19:15:28 +08:00
customerContactGate.ts feat: simplify WeChat register UX and gate orders on contact info 2026-07-27 13:07:29 +08:00
customerPassword.ts feat: add H5 customer center, marketing admin, and employee profile UX 2026-07-26 23:44:02 +08:00
customerStatus.ts feat: 查价下单加固、待排货 UI 与 EnableStatus 对齐 2026-07-22 19:00:56 +08:00
device.ts feat: ?????????????????/??????? 2026-07-30 15:16:55 +08:00
domesticPickupProducts.ts feat: 完善日夜间主题与揽收下单体验 2026-08-04 11:49:23 +08:00
domUtils.ts Initial commit: Upload local project code 2025-10-27 11:52:54 +08:00
echarts.ts 重新对接轨迹拉取 2025-12-03 19:26:02 +08:00
enableStatus.ts feat: 查价下单加固、待排货 UI 与 EnableStatus 对齐 2026-07-22 19:00:56 +08:00
enter-system.ts perf: 优化登录进系统链路,减轻首屏与进系统阻塞 2026-07-18 23:13:23 +08:00
env.ts Initial commit: Upload local project code 2025-10-27 11:52:54 +08:00
event.ts Initial commit: Upload local project code 2025-10-27 11:52:54 +08:00
formatter.ts Initial commit: Upload local project code 2025-10-27 11:52:54 +08:00
h5FollowPrompt.ts feat: ship billing UI for additional services, conditions, and fee insights 2026-08-01 18:09:22 +08:00
headerFilterAdapter.ts feat: ship billing UI for additional services, conditions, and fee insights 2026-08-01 18:09:22 +08:00
headerFilterLimits.ts feat: ship billing UI for additional services, conditions, and fee insights 2026-08-01 18:09:22 +08:00
headerFilterScheme.ts feat: ship billing UI for additional services, conditions, and fee insights 2026-08-01 18:09:22 +08:00
image-data-url.ts feat: 用户扩展、Nana双Tab、仓库与客服入口优化 2026-07-09 11:23:54 +08:00
index.ts Initial commit: Upload local project code 2025-10-27 11:52:54 +08:00
interfaceParameterModel.ts feat: 小红书模块迁移、登录重构与 xhs-agent-desktop 桌面 Agent 2026-06-30 16:13:13 +08:00
inviteLink.ts feat: add H5 customer center, marketing admin, and employee profile UX 2026-07-26 23:44:02 +08:00
invitePoster.ts feat: ?????????????????/??????? 2026-07-30 15:16:55 +08:00
inviteRefStorage.ts feat: add H5 customer center, marketing admin, and employee profile UX 2026-07-26 23:44:02 +08:00
is.ts Initial commit: Upload local project code 2025-10-27 11:52:54 +08:00
itfxScriptAi.ts feat: ship billing UI for additional services, conditions, and fee insights 2026-08-01 18:09:22 +08:00
jsonParameterTree.ts 20260604 2026-06-04 19:15:28 +08:00
jwt.ts feat: 查价价卡展示贸易条款与产品分组,并优化 H5/登录与顾问体验 2026-07-30 11:48:36 +08:00
login-portal.ts feat: Handsontable 混合表头与请求日志改造,并完善 H5 下单/登录体验 2026-07-30 20:09:42 +08:00
menu-display.ts feat: 自动触发公式引擎、查价分组运输方式与销售产品预览 2026-07-09 18:36:15 +08:00
menu-i18n.ts feat: 完善日夜间主题与揽收下单体验 2026-08-04 11:49:23 +08:00
menu-icon.ts feat: ship billing UI for additional services, conditions, and fee insights 2026-08-01 18:09:22 +08:00
message.ts Initial commit: Upload local project code 2025-10-27 11:52:54 +08:00
monitor.ts Initial commit: Upload local project code 2025-10-27 11:52:54 +08:00
orderCreateOneBody.ts feat: 小红书模块迁移、登录重构与 xhs-agent-desktop 桌面 Agent 2026-06-30 16:13:13 +08:00
organization-code.ts feat: 用户扩展、Nana双Tab、仓库与客服入口优化 2026-07-09 11:23:54 +08:00
orgLeftMenuTree.ts feat: 用户扩展、Nana双Tab、仓库与客服入口优化 2026-07-09 11:23:54 +08:00
page-transition-flag.ts 完善订单与工作台:新增运单管理,我的订单支持字段配置与客户详情精简,世界时间移至统计卡片右下角,并清理无用演示资源 2026-07-17 14:17:20 +08:00
parcelCreateFailGuide.ts feat: MCP/AI Agent 接入顾问与查价问 AI,并补齐 /ai /mcp 反代 2026-07-29 12:47:32 +08:00
parseCurl.ts 20260604 2026-06-04 19:15:28 +08:00
priceWeightInterval.ts feat: 小红书模块迁移、登录重构与 xhs-agent-desktop 桌面 Agent 2026-06-30 16:13:13 +08:00
pub.ts Initial commit: Upload local project code 2025-10-27 11:52:54 +08:00
publishSnapshotDiff.ts fix: harden publish snapshot diff normalization and error handling 2026-07-23 12:03:47 +08:00
rapidPackagePluginHost.ts 完善订单与工作台:新增运单管理,我的订单支持字段配置与客户详情精简,世界时间移至统计卡片右下角,并清理无用演示资源 2026-07-17 14:17:20 +08:00
rbac-error-handler.ts feat: 查价价卡展示贸易条款与产品分组,并优化 H5/登录与顾问体验 2026-07-30 11:48:36 +08:00
rbac-permission.ts feat: 面单标签设计与仓内操作页优化,接通模板打印链路 2026-07-18 17:49:18 +08:00
rbacLeftMenuTree.ts feat(rbac): 数据权限三页左右分栏与右侧详情壳优化 2026-07-03 16:44:46 +08:00
rbacPermissionAssignRows.ts feat: 新增 H5 轨迹查询页并优化角色权限分配 2026-07-04 17:59:20 +08:00
README.md Initial commit: Upload local project code 2025-10-27 11:52:54 +08:00
request-dedup.ts 20260124 2026-01-24 11:55:01 +08:00
request.ts feat: 查价价卡展示贸易条款与产品分组,并优化 H5/登录与顾问体验 2026-07-30 11:48:36 +08:00
resolveOrderDownstreamCredentials.ts feat: 小红书模块迁移、登录重构与 xhs-agent-desktop 桌面 Agent 2026-06-30 16:13:13 +08:00
route-listener.ts Initial commit: Upload local project code 2025-10-27 11:52:54 +08:00
route-name-mapper.ts feat: ship billing UI for additional services, conditions, and fee insights 2026-08-01 18:09:22 +08:00
routes.ts Initial commit: Upload local project code 2025-10-27 11:52:54 +08:00
setup-mock.ts Initial commit: Upload local project code 2025-10-27 11:52:54 +08:00
statusTag.ts feat: ship billing UI for additional services, conditions, and fee insights 2026-08-01 18:09:22 +08:00
syncMenuLevel3Buttons.ts feat: 面单标签设计与仓内操作页优化,接通模板打印链路 2026-07-18 17:49:18 +08:00
syncMenuRouteCatalog.ts feat: add H5 customer center, marketing admin, and employee profile UX 2026-07-26 23:44:02 +08:00
themeColor.ts feat: 完善日夜间主题与揽收下单体验 2026-08-04 11:49:23 +08:00
user-employee-no.ts feat: add H5 customer center, marketing admin, and employee profile UX 2026-07-26 23:44:02 +08:00
useTabRowCounts.ts 20260604 2026-06-04 19:15:28 +08:00
warehouseActionRenderer.ts feat: ship billing UI for additional services, conditions, and fee insights 2026-08-01 18:09:22 +08:00
warehouseListMapper.ts feat: 面单标签设计与仓内操作页优化,接通模板打印链路 2026-07-18 17:49:18 +08:00
wechatAuthLogin.ts feat: ?????????????????/??????? 2026-07-30 15:16:55 +08:00
wechatFollowJump.ts feat: ?????????????????/??????? 2026-07-30 15:16:55 +08:00
wechatOAuth.ts feat: H5 WeChat one-tap authorize login/register and UI polish 2026-07-30 15:56:46 +08:00
wechatShowQrUrl.ts feat: 查价价卡展示贸易条款与产品分组,并优化 H5/登录与顾问体验 2026-07-30 11:48:36 +08:00
withTimeout.ts feat: ?????????????????/??????? 2026-07-30 15:16:55 +08:00
xhsAgentPair.ts feat: 微信扫码轮询优化、XHS 联调与本地代理指向线上 API 2026-07-02 15:52:09 +08:00
zhipuAi.ts 20260604 2026-06-04 19:15:28 +08:00

Global Utilities

$baseMessage

A global message utility function that provides a consistent way to display messages across the application.

Usage

In Vue components, you can use it via the component instance:

// In setup()
import { getCurrentInstance } from 'vue';

const { proxy } = getCurrentInstance() || { proxy: null };

// Then use it
proxy?.$baseMessage('Operation successful', 'success');

Parameters

  • message: string - The message content to display
  • type: 'success' | 'error' | 'warning' | 'info' = 'info' - The type of message

Examples

// Success message
proxy?.$baseMessage('Operation successful', 'success');

// Error message
proxy?.$baseMessage('Operation failed', 'error');

// Warning message
proxy?.$baseMessage('Warning: This action cannot be undone', 'warning');

// Info message (default)
proxy?.$baseMessage('System will be updated at midnight');

Implementation

The function is implemented in src/utils/message.ts and registered globally in src/plugins/globalProperties.ts.