refactor: 全局注册自定义指令方式优化

Former-commit-id: 40c40fa90d88d9efad4ef2fb73b00d650427fd05
This commit is contained in:
haoxr
2023-03-23 07:42:48 +08:00
parent 382ee33328
commit 66499d06e9
3 changed files with 17 additions and 11 deletions

View File

@@ -3,7 +3,7 @@ import { createPinia } from 'pinia';
const store = createPinia();
// 全局挂载store
// 全局注册 store
export function setupStore(app: App<Element>) {
app.use(store);
}