Skip to content

Commit

Permalink
fix(utils): 判断_installedPlugins条件修正 (#1697)
Browse files Browse the repository at this point in the history
  • Loading branch information
qqw78901 authored Nov 2, 2022
1 parent 523f142 commit 538f732
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/withInstall.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export function withInstall<T>(comp: T, dep?: PluginObject<any>) {
Vue.component(componentName, comp);
};

if (dep && Vue?._installedPlugins?.indexOf(dep) === -1) {
if (dep && Vue && (Vue._installedPlugins || []).indexOf(dep) === -1) {
Vue.use(dep);
}

Expand Down

0 comments on commit 538f732

Please sign in to comment.