首页文章Pinia-面试-TS类型与跨StorePinia-面试-TS类型与跨Store2026年10月16日·Admin·1 次浏览Pinia面试题:Pinia 在 TypeScript 里如何类型安全?Store 互相调用? 类型 defineStore 泛型或 自动推导;Setup store 对 return 类型推断友好。 跨 store 在 action 里 const other = useOtherStore(),注意循环依赖(拆第三层 composable 或事件解耦)。 ← 返回首页