[Vue warn]: injection “Symbol(pinia)“ not found.

[Vue warn]: injection “Symbol(pinia)“ not found._第1张图片

export function useCustomStoreWithOut() {
  return useCustomStore(store);
}

引入

import { useCustomStoreWithOut as useCustomStore } from '@src/store/modules/custom';
// 正常使用

你可能感兴趣的:(typescript,vue,typescript,vue.js)