更新 README.md

This commit is contained in:
就眠儀式
2021-12-23 00:16:42 +08:00
parent 018866ff06
commit e6f1dc1b85
2 changed files with 20 additions and 27 deletions

View File

@@ -132,12 +132,11 @@ const components: Record<string, IDefineComponent> = {
}
const install = (app: App, options?: InstallOptions): void => {
const _options = options
app.config.globalProperties.$PROOPTIONS = _options
const _options = options;
app.config.globalProperties.$PROOPTIONS = _options;
for (const key in components) {
const item = components[key]
app.component(item.name || key, item)
const item = components[key];
app.component(item.name || key, item);
}
}