simple321vip 4da6832b44 feat: R1 重构对称迁移 + 升级依赖 + 配置文件分离
- 命名重构:tenant → customer(对齐后端 R1 重构)
  - Tenant → Customer / tenant_id → customerId
  - tenantStore → customerStore / getTenant/setTenant → getCustomer/setCustomer
  - cookie key tenant → customer, HTTP header tenantId → customerId
- 后端契约更新:AuthResponse 加 sub 字段
- 接口 URL 修复:/auth/oidc/callback → /api/v1/auth/oidc/callback
- 依赖升级:vue 3.5 / element-plus 2.8 / vite 5 / typescript 5.6 / sass 1.79
- 删 node-sass / scss / sass-loader / moment / mock/index.ts
- 配置文件拆分:.env.development / .env.production / .env.example
- 删除冗余 view/auth/auth/callback.vue 副本
- .gitignore 增加 dist / .opencode / tmp
- 新增 AGENT.md 与后端风格对齐
2026-06-22 08:02:21 +08:00
2022-04-03 23:43:45 +08:00
2026-06-04 21:34:58 +08:00
2026-06-04 21:34:58 +08:00
2023-02-02 23:22:06 +08:00
2023-04-09 23:55:26 +08:00
2023-01-28 17:01:39 +08:00
2022-04-03 23:43:45 +08:00

Vue 3 + Typescript + Vite + pinia + vue-router

about creating project document how to bulid a project

before create project, you should install node to promit npm and node command is standy. npm -v node -v

// 在想要创建的工程路径下执行以下命令,3到6秒就可以结束
npm init vite@latest
// 1.填写 violin-home
// 2.选择vue
// 3.vue.ts

cd violin-home
npm install

vue-router

npm install vue-router -S

pinia

// instand of vuex
npm install pinia -S

element-plus

npm install element-plus -S
npm install js-cookie -S

vite-plugin-mock

// to enter the home page:
localhost:3000/home?tenantId=XXX&account=YYY&token=ABCDEFG

profiles

添加了.env.development ebv.test .env.production 文件 development: 开发环境,使用mock,不需要后台联动 test: 测试环境需要 后台java程序支持,同时需要百度第三方认证。 prod: 生产环境通过 jenkins 做ci 持续集成 argocd 做cd 持续发布。

prod server

nginx as a web server, i use the official image to build this app image.

publish

  • npm run build 生成dist 文件夹

百度网盘开放平台

https://pan.baidu.com/union/home?menuKey=union-home

S
Description
No description provided
Readme 30 MiB
Languages
Vue 69.5%
TypeScript 29.6%
Shell 0.6%
HTML 0.2%