front/src/utils
zzh 2612a225ad
All checks were successful
Build and Deploy Front / deploy (push) Successful in 5m51s
fix: 接口参数占位符 $Token 大小写,并修复 Query/Header 空值删除无法落库
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-09 18:48:27 +08:00
..
hiprint feat: 抽取 PublishDiff 公共组件,完善发布/订单/渠道与多模块体验 2026-09-13 23:34:54 +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: test 站点登录强制走 api.test,避免误用正式 API 2026-09-24 11:24:03 +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
auditFields.ts feat: 默认页面背景联动加载页,官网入口与线路面板体验优化 2026-10-07 15:08:57 +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
factorValueTagPreview.ts feat: 优化数据权限模板与营销抽屉等运营配置体验 2026-10-07 18:25:31 +08:00
feeTotals.ts feat: 对账件重尺导入与应收生效阶段合计 2026-09-12 16:57:28 +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 fix: 接口参数占位符 $Token 大小写,并修复 Query/Header 空值删除无法落库 2026-10-09 18:48:27 +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: 接口参数复制带注释 JSON,下单自寄到仓展示仓库地址 2026-09-16 15:57:07 +08:00
jwt.ts feat: 查价价卡展示贸易条款与产品分组,并优化 H5/登录与顾问体验 2026-07-30 11:48:36 +08:00
login-portal.ts feat: 将静态官网迁入 Vue 首页,并优化顾问导航与登录态 2026-10-06 20:50:57 +08:00
memberLevelIcon.ts feat: 分区导入增量/全量与工具栏删除,发布同步态与会员展示优化 2026-10-07 17:34:36 +08:00
menu-display.ts feat: 自动触发公式引擎、查价分组运输方式与销售产品预览 2026-07-09 18:36:15 +08:00
menu-i18n.ts feat: 增加客户 OpenAPI 文档页,支持轨迹与文件说明 2026-10-05 18:55:07 +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: 揽收单预报与出口资质等,本地默认切测试环境 2026-09-23 11:29:53 +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-10-07 15:08:57 +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: 优化数据权限模板与营销抽屉等运营配置体验 2026-10-07 18:25:31 +08:00
printPreview.ts fix: 订单附件预览改为与查看面单一致的打开方式 2026-10-07 20:08:27 +08:00
printSessionCache.ts feat: 抽取 PublishDiff 公共组件,完善发布/订单/渠道与多模块体验 2026-09-13 23:34:54 +08:00
pub.ts Initial commit: Upload local project code 2025-10-27 11:52:54 +08:00
publishSnapshotDiff.ts feat: 分区导入增量/全量与工具栏删除,发布同步态与会员展示优化 2026-10-07 17:34:36 +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 fix: align track API path rewrite with Vite for ideship 2026-09-30 17:49:05 +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: 揽收单预报与出口资质等,本地默认切测试环境 2026-09-23 11:29:53 +08:00
warehouseShipAddress.ts feat: 仓库地址排序备注与映射明细性能、脏检查误报修复 2026-10-09 14:12:32 +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.