@hh-admin/core

Shared runtime utilities and hooks for Hh Admin
1,152
Install
npm install @hh-admin/core
Latest Version:0.1.3
Vue:3
License:Apache-2.0
Last Updated:Jul 16, 2026
Links: Gitee  ·  npm
Maintainer: hb357177179

@hh-admin/core

Shared runtime utilities and Vue hooks for Hh Admin templates.

Usage

import { generateRequestId, getToken, useLoading } from '@hh-admin/core'

APIs

  • clearToken
  • getToken
  • isLogin
  • setToken
  • downloadByUrl
  • type guards such as isString, isObject, and isValidNumber
  • useLoading
  • useHttpRequestStatus shares the active request count and request IDs with page-level controls.
  • useResetReactive
  • generateRequestId returns a compact UUID without hyphens.

Write requests created by the shared HTTP client automatically receive an X-Request-Id header. Pass requestId to reuse the same ID for a retry, or set requestId: false to disable automatic injection for a specific request.

Use http.retry(config, { retries: 2 }) when a network request should retry; write-request retries reuse one request ID. Set dedupe: true on a write request when concurrent identical submissions should cancel the previous one.

Related Packages

lj-publish-test3

A magical vue admin. Typical templates for enterprise applications. Newest devel...

12,812 90,127
loit-web-component-gx

广西时代凌宇前端组件库

7,272 2,595
vue-bag-admin

Unified entry package for the Vue Bag Admin runtime ecosystem.

3,800 1,332
hk-mssh-ui

web端的组件编写和集成

2,714
vue-element-admin

A magical vue admin. Typical templates for enterprise applications. Newest devel...

2,674 90,127

Version History

Version Released Vue License
0.1.3 ^3.5.18 Apache-2.0
0.1.2 ^3.5.18 Apache-2.0
0.1.1 ^3.5.18 Apache-2.0
0.1.0 ^3.5.18 Apache-2.0