style:修改项目字体文件引入路径,使用贝蒂字体文件

This commit is contained in:
13895237362 committed 2025-11-03 15:16:16 +08:00
1 parent 302bca25be
commit a34b834382
10 files changed
+81 -41

No files matched your search

+5 -4
View File
@@ -13,10 +13,11 @@
<link rel="icon" type="image/svg+xml" href="/favicon.svg">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes, minimum-scale=0.5, maximum-scale=3.0" />
<title>授权管理系统</title>
<!-- Source Han Sans CN 字体 -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@100;300;400;500;700;900&display=swap" rel="stylesheet">
<!-- Noto Sans SC 本地字体预加载(优化加载速度) -->
<!-- 注意: 字体文件需要下载到 src/assets/fonts/ 目录,参考 FONT_OPTIMIZATION.md -->
<link rel="preload" href="/src/assets/fonts/noto-sans-sc-regular.woff2" as="font" type="font/woff2" crossorigin="anonymous">
<link rel="preload" href="/src/assets/fonts/noto-sans-sc-medium.woff2" as="font" type="font/woff2" crossorigin="anonymous">
<link rel="preload" href="/src/assets/fonts/noto-sans-sc-bold.woff2" as="font" type="font/woff2" crossorigin="anonymous">
</head>
<body>
<div id="app"></div>
+3 -3
View File
@@ -57,7 +57,7 @@ export const getAuthorizationTrend = (params: {
return Axios.get('/api/v1/dashboard/authorization-trend', { params })
}
// 获取仪表盘统计数据
export const getDashboardStats = (): Promise<ApiResponse<any>> => {
return Axios.get('/api/v1/dashboard/stats')
// 获取仪表盘统计数据(新接口,返回卡片区数据)
export const getOverviewStats = () => {
return Axios.get('/api/v1/stats/overview')
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
+36
View File
@@ -0,0 +1,36 @@
/*
* Noto Sans SC 本地字体定义
* 只包含实际使用的字重:400, 500, 700
* 使用 font-display: swap 优化字体加载性能
*/
/* 常规字重 400 */
@font-face {
font-family: 'Noto Sans SC';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url('../fonts/noto-sans-sc-regular.woff2') format('woff2'),
url('../fonts/noto-sans-sc-regular.woff') format('woff');
}
/* 中等字重 500 */
@font-face {
font-family: 'Noto Sans SC';
font-style: normal;
font-weight: 500;
font-display: swap;
src: url('../fonts/noto-sans-sc-medium.woff2') format('woff2'),
url('../fonts/noto-sans-sc-medium.woff') format('woff');
}
/* 粗体字重 700 */
@font-face {
font-family: 'Noto Sans SC';
font-style: normal;
font-weight: 700;
font-display: swap;
src: url('../fonts/noto-sans-sc-bold.woff2') format('woff2'),
url('../fonts/noto-sans-sc-bold.woff') format('woff');
}
+22 -21
View File
@@ -66,20 +66,21 @@
"language": "Switch Language",
"theme": "Switch Theme"
},
"breadcrumb": {
"dashboard": "Dashboard",
"customers": "Customer Management",
"licenses": "License Management",
"licenseList": "License List",
"createLicense": "Create License",
"roles": "Roles & Permissions",
"users": "System Users",
"login": "Login",
"settings": "Settings",
"profile": "Profile",
"workspace": "Workspace",
"unknown": "Unknown Page"
}
"breadcrumb": {
"dashboard": "Dashboard",
"customers": "Customer Management",
"licenses": "License Management",
"licenseList": "License List",
"createLicense": "Create License",
"viewLicense": "View License",
"roles": "Roles & Permissions",
"users": "System Users",
"login": "Login",
"settings": "Settings",
"profile": "Profile",
"workspace": "Workspace",
"unknown": "Unknown Page"
}
},
"chart": {
"licenseTrend": {
@@ -214,7 +215,7 @@
"expired": "Expired",
"expiring": "Expiring Soon"
},
"form": {
"formBasic": {
"basicInfo": "Basic Information",
"selectCustomer": "Select Customer",
"description": "License Description",
@@ -562,12 +563,12 @@
"updater": "Updater",
"updateTime": "Update Time",
"totalLicenses": "Total Licenses",
"activeLicenses": "Active Licenses",
"recentLicense": "Recent License",
"expiringSoon": "Expiring Soon",
"expiringSoonTime": "Expiring Soon Time",
"expiredLicenses": "Expired Licenses",
"expiredTime": "Expired Time",
"activeLicenses": "Expired Licenses",
"recentLicense": "Licenses Expiring Within 30 Days",
"expiringSoon": "Total License Count",
"expiringSoonTime": "Activated License Count",
"expiredLicenses": "Unactivated License Count",
"expiredTime": "Expired License Count",
"noData": "--",
"onlineLicense": "Online License",
"customerNotExist": "Customer data does not exist"
+8 -7
View File
@@ -72,6 +72,7 @@
"licenses": "ライセンス管理",
"licenseList": "ライセンス一覧",
"createLicense": "ライセンス作成",
"viewLicense": "ライセンス表示",
"roles": "ロールと権限",
"users": "システムユーザー",
"login": "ログイン",
@@ -214,7 +215,7 @@
"expired": "期限切れ",
"expiring": "期限近し"
},
"form": {
"formBasic": {
"basicInfo": "基本情報",
"selectCustomer": "顧客選択",
"description": "ライセンス説明",
@@ -562,12 +563,12 @@
"updater": "更新者",
"updateTime": "更新日時",
"totalLicenses": "総ライセンス数",
"activeLicenses": "アクティブライセンス",
"recentLicense": "最近のライセンス",
"expiringSoon": "期限近し",
"expiringSoonTime": "期限近し日時",
"expiredLicenses": "期限切れライセンス",
"expiredTime": "期限切れ日時",
"activeLicenses": "期限切れライセンス",
"recentLicense": "30日以内に期限切れするライセンスコード数量",
"expiringSoon": "総ライセンス数量",
"expiringSoonTime": "アクティベート済みライセンス数量",
"expiredLicenses": "未アクティベートライセンス数量",
"expiredTime": "期限切れライセンス数量",
"noData": "--",
"onlineLicense": "オンラインライセンス",
"customerNotExist": "顧客データが存在しません"
+6 -6
View File
@@ -563,12 +563,12 @@
"updater": "更新人",
"updateTime": "更新时间",
"totalLicenses": "总授权数",
"activeLicenses": "活跃授权",
"recentLicense": "最近授权",
"expiringSoon": "即将过期",
"expiringSoonTime": "即将过期时间",
"expiredLicenses": "过期授权",
"expiredTime": "过期时间",
"activeLicenses": "已过期授权",
"recentLicense": "30日内即将到期授权码数量 ",
"expiringSoon": "总许可证数量",
"expiringSoonTime": "已激活许可证数量",
"expiredLicenses": "未激活许可证数量",
"expiredTime": "已过期许可证数量",
"noData": "--",
"onlineLicense": "在线授权",
"customerNotExist": "客户数据不存在"
+1
View File
@@ -11,6 +11,7 @@ import App from './App.vue'
import router from './router'
// 全局样式系统
import './assets/styles/fonts.css' // 本地字体(优先加载)
import './assets/styles/global.scss'
import './assets/styles/element-theme.scss'