Files
form-center-front/src/store/index.ts
T
chenxing fdd9aaaa3b
build / build (push) Successful in 3m10s
feat(shell): T5 前端·壳与管理端框架——fork notice/front 基线并剥领域
- A 类主题 loader 原文接入 + env-config 引导 + vite /static 与 /api(8086) 代理(P6/P11)
- GetUserMod 左导航:utils/menuNav.ts 单点实现 path 空锚点跳过、分组收敛、icon 兜底、面包屑基线(对齐 Notice 13afb22 refined 版)
- alova 封装 + api/module/base.ts(getUserMod 可选 appCode,P2 定名;H4 前空树不回落,P3)
- 路由骨架一 SPA 四形态:/admin/{forms,data,stats,dicts}、/f/:code、/app/:appCode/*、/my;self!=top 剥壳(方案 §3.3)
- 规范件落位:tableActions.ts(UserBase 同构源,正文 MD5 不变)、TablePageAlovaNew + useElementHeight、page-wrapper yh-fill 骨架
- view-ui-plus 精确锁 1.3.24;本地零 layout.css/icons.css;avatar 两件由 YschTheme sync 下发
- 剥除:notice 领域 views/api/mock/menu 兜底、alova-vant(mobiapi)、ztree+jquery 与重依赖(按需回补,见 service/docs/T5-report.md 问题单 P52)
2026-10-14 20:35:41 +08:00

18 lines
508 B
TypeScript
Raw 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.
import { defineStore } from "pinia";
/**
* 全局 store(notice/front 基线形态)。
* 本轮 T5 壳未消费业务态,保留 userRole(school/平台)这一子应用通用位,
* 表单/答卷/设计器的态随 T6~T8 按需开切片,不提前建空壳。
*/
export const useDefaultStore = defineStore("defaultStore", {
state: () => ({
userRole: "school" as string
}),
actions: {
setUserRole(role: string) {
this.userRole = role;
}
}
});