Files
lovife 5b877451eb refactor(pc): 从 Gi Admin Pro + Arco 重搭为纯 Vue 3 + Naive UI
旧模板的 193 个文件整体删除,换成纯 Vue 3.5 + Naive UI 2.42 的树。

- 去掉 auto-import(组件与 API 全显式 import)、v-hasPerm(改 user.has('码'),全库 8 处)、
  Stylelint;n-tag 的 type 统一过 utils/tag.ts 转换(Arco 色词直接透传会静默变灰)
- 图标改为构建期抽取:scripts/extract-pc-icons.py -> icons/icon-data.ts(37 个),
  内网离线部署不会白屏
- 重搭后修掉 6 类"编译 / lint / typecheck 全绿、界面上就是坏的"故障:
  ① NGrid 的 cols 写成像素值(不是断点名 -> 永远只 1 列,工作台因此错乱)
  ② n-tab-pane 用 tab 属性(只渲染空注释节点,整排 tab 一个字都不显示)
  ③ 漏 import 被当未知自定义元素(样式整块丢) ④ .n-card__content 类名不存在
  (高度链第一环失效,表格行在 DOM 里但屏幕上没有) ⑤ 填报单状态映射错位一格
  ⑥ 有标题的卡片没有上内边距(naive 的 padding-top 只给"内容区是长子"的卡片)
- 卡片式版面提成全局基线:styles/index.scss 的 xt-* 令牌 + .page-card / .toolbar /
  .section-title,页面只引用、不再各写一套
- 品牌:改名「深学在线」,文字标换成几何标(方 = 卷宗 / 环 = 在线,不用文字字形);
  index.html 的页签图标从 404 的 /favicon.ico 改指真实存在的 /favicon.svg
2026-10-10 16:48:46 +08:00

22 lines
1.2 KiB
XML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" width="64" height="64">
<!--
浏览器页签图标。
与 src/assets/images/logo.svg 同一识别符号,但**刻意做减法 + 加粗**:
favicon 实际渲染尺寸只有 16~32px,渐变、高光、内描边到这里全都会糊成噪点,
而 5.9 的白环描边缩到 16px 只剩 1.5px,会被抗锯齿吃掉一半。
所以这里:去掉渐变(平铺 #0052D9)、去掉高光与内描边、描边加粗到 7.7。
外接盒与 logo.svg 完全一致(四周留白 8.5),两处切换时不会有位移。
⚠️ index.html 引的是 /favicon.svg。**这里没有 favicon.ico**,
写成 .ico 会 404、页签变成空白(2026-10 修过一次)。
-->
<rect x="0" y="0" width="64" height="64" rx="15" fill="#0052D9" />
<!-- 环(在线 / 汇聚点):中线半径 15.4 + 描边 7.7 = 外径 38.5,与 logo.svg 同 -->
<circle cx="36.25" cy="26.62" r="15.4"
fill="none" stroke="#FFFFFF" stroke-width="7.7" stroke-opacity="0.82" />
<!-- 方(卷宗) -->
<rect x="8.5" y="22.65" width="34" height="34" rx="10.4" fill="#FFFFFF" />
</svg>