front/src/utils
zzh ffe8679f82
All checks were successful
Build and Deploy Front / deploy (push) Successful in 5m42s
chore: 清理无用接口表页与构建优化,次要列表改 a-table
保留核心 InterfaceDetail/ApiTest 的 vxe;去掉死代码映射页,预警/账户等次要表迁 a-table;构建默认跳过 brotli、mermaid 分包;面单按需 EP;修复标签刷新竞态与 COS 打印鉴权。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-12 15:46:57 +08:00
..
hiprint chore: 清理无用接口表页与构建优化,次要列表改 a-table 2026-09-12 15:46:57 +08:00
admin-care-settings.ts feat: 页面背景预设与工作台增强,优化官网与登录体验 2026-08-28 10:59:10 +08:00
admin-care-toast.ts feat: 管理端人文关怀双工作台与接口/H5体验优化 2026-08-09 19:06:51 +08:00
admin-login-care.ts feat: 管理端人文关怀双工作台与接口/H5体验优化 2026-08-09 19:06:51 +08:00
adminApi.ts fix: 开发代理避免 CORS,ideship Track 路径去重段 2026-09-09 12:53:02 +08:00
advisorInviteStorage.ts feat: 顾问新客邀请链接与岗位职级字典 2026-09-03 12:45:13 +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
chunkReload.ts fix: 部署后 chunk 404 自动刷新,SPA index 禁止缓存 2026-09-09 16:33:07 +08:00
confirm.ts Initial commit: Upload local project code 2025-10-27 11:52:54 +08:00
costItemLabel.ts feat: 接入 IDE 官网与地区地图,并同步运营/财务/订单前端改动 2026-08-24 19:24:05 +08:00
curlToInterfaceFill.ts feat: 查价卡片改版与接口/工作台体验优化 2026-09-05 16:14:16 +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
directUpload.ts feat: COS 直传、仓储上传带客户、9610 表格与 Nana 体验修复 2026-09-11 12:09:36 +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
feeTotals.ts feat: 接入 IDE 官网与地区地图,并同步运营/财务/订单前端改动 2026-08-24 19:24:05 +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: 接入 IDE 官网与地区地图,并同步运营/财务/订单前端改动 2026-08-24 19:24:05 +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: 管理端人文关怀双工作台与接口/H5体验优化 2026-08-09 19:06:51 +08:00
inviteLink.ts feat: 顾问新客邀请链接与岗位职级字典 2026-09-03 12:45:13 +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: 管理端人文关怀双工作台与接口/H5体验优化 2026-08-09 19:06:51 +08:00
jsonParameterTree.ts feat: 接口明细清空 Tab 与 Array 根去重,面单预览走鉴权流 2026-09-11 19:14:26 +08:00
jwt.ts feat: 查价价卡展示贸易条款与产品分组,并优化 H5/登录与顾问体验 2026-07-30 11:48:36 +08:00
login-portal.ts feat: 接入 IDE 官网与地区地图,并同步运营/财务/订单前端改动 2026-08-24 19:24:05 +08:00
menu-display.ts feat: 自动触发公式引擎、查价分组运输方式与销售产品预览 2026-07-09 18:36:15 +08:00
menu-i18n.ts feat: 新增 9610 申报页与批量清单/报关单操作 2026-08-30 17:46:04 +08:00
menu-icon.ts feat: 新增 9610 申报页与批量清单/报关单操作 2026-08-30 17:46:04 +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
notice-unread.ts feat: H5 店铺订单与进站优化,PC 店铺订单工具栏精简 2026-08-10 17:39:44 +08:00
orderCreateOneBody.ts feat: 小红书模块迁移、登录重构与 xhs-agent-desktop 桌面 Agent 2026-06-30 16:13:13 +08:00
organization-code.ts feat: 顾问新客邀请链接与岗位职级字典 2026-09-03 12:45:13 +08:00
orgLeftMenuTree.ts feat: 顾问新客邀请链接与岗位职级字典 2026-09-03 12:45:13 +08:00
page-transition-flag.ts 完善订单与工作台:新增运单管理,我的订单支持字段配置与客户详情精简,世界时间移至统计卡片右下角,并清理无用演示资源 2026-07-17 14:17:20 +08:00
pageBackground.ts feat: 页面背景预设与工作台增强,优化官网与登录体验 2026-08-28 10:59:10 +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
printPreview.ts chore: 清理无用接口表页与构建优化,次要列表改 a-table 2026-09-12 15:46:57 +08:00
printSessionCache.ts feat: 仓储表单体验、轨迹 SPA 代理修复与打印预览增强 2026-09-12 12:30:35 +08:00
pub.ts Initial commit: Upload local project code 2025-10-27 11:52:54 +08:00
publishSnapshotDiff.ts feat: 顶栏标签折叠管控与业务页体验优化 2026-09-04 18:39:55 +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: 新增 9610 申报页与批量清单/报关单操作 2026-08-30 17:46:04 +08:00
rbacLeftMenuTree.ts feat(rbac): 数据权限三页左右分栏与右侧详情壳优化 2026-07-03 16:44:46 +08:00
rbacPermissionAssignRows.ts feat: 新增 9610 申报页与批量清单/报关单操作 2026-08-30 17:46:04 +08:00
README.md Initial commit: Upload local project code 2025-10-27 11:52:54 +08:00
receivablePayableGroup.ts feat: 接入 IDE 官网与地区地图,并同步运营/财务/订单前端改动 2026-08-24 19:24:05 +08:00
request-dedup.ts 20260124 2026-01-24 11:55:01 +08:00
request.ts feat: k3s 2026-09-07 10:27:12 +08:00
resolveOrderDownstreamCredentials.ts feat: 小红书模块迁移、登录重构与 xhs-agent-desktop 桌面 Agent 2026-06-30 16:13:13 +08:00
rewriteBrowserApiPath.ts feat: 仓储表单体验、轨迹 SPA 代理修复与打印预览增强 2026-09-12 12:30:35 +08:00
route-listener.ts Initial commit: Upload local project code 2025-10-27 11:52:54 +08:00
route-name-mapper.ts feat: 代发订单分轨与运营页,补 SPA 回退与 H5/下单优化 2026-08-20 10:27:37 +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-28 10:59:10 +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: 仓储表单体验、轨迹 SPA 代理修复与打印预览增强 2026-09-12 12:30:35 +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 fix: H5 微信 OAuth 从 wechat_mp 读取 AppId 与回调根 2026-09-09 09:17:14 +08:00
wechatShowQrUrl.ts feat: 查价价卡展示贸易条款与产品分组,并优化 H5/登录与顾问体验 2026-07-30 11:48:36 +08:00
wecomKf.ts feat: 接入企业微信客服,并同步工作台与下单页改动 2026-09-01 19:09:34 +08:00
withTimeout.ts feat: ?????????????????/??????? 2026-07-30 15:16:55 +08:00
workplace-care.ts feat: 管理端人文关怀双工作台与接口/H5体验优化 2026-08-09 19:06:51 +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.