xueyiming 7f2eca4d51 修改全局热度展示 1 tydzień temu
..
public 306b87a92a 增加前端页面展示 2 tygodni temu
src 7f2eca4d51 修改全局热度展示 1 tydzień temu
.gitignore 306b87a92a 增加前端页面展示 2 tygodni temu
README.md 306b87a92a 增加前端页面展示 2 tygodni temu
index.html 306b87a92a 增加前端页面展示 2 tygodni temu
package-lock.json a8994314b0 修改前端页面展示 2 tygodni temu
package.json a8994314b0 修改前端页面展示 2 tygodni temu
tsconfig.app.json 306b87a92a 增加前端页面展示 2 tygodni temu
tsconfig.json 306b87a92a 增加前端页面展示 2 tygodni temu
tsconfig.node.json 306b87a92a 增加前端页面展示 2 tygodni temu
vite.config.ts a8994314b0 修改前端页面展示 2 tygodni temu

README.md

全局分类树前端

Vue 3 + Vite 纯前端,横向展示 global_tree_category 分类树。

开发

先启动后端(仓库根目录,端口 8080):

# 使用项目 venv
.venv/bin/python -m api
# 或
.venv/bin/supply-api

再启动本前端:

cd web
npm install
npm run dev

浏览器打开 http://127.0.0.1:5173/api 会代理到后端 8080

功能

  • 一次请求拉取整棵树,展开/收起全部由前端控制
  • 默认展开 3 层,可通过下拉选择展开到第 N 层
  • 节点旁 +/- 可手动展开或收起该节点子树