We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ddac6af commit 3ea8089Copy full SHA for 3ea8089
lib/Plugin.js
@@ -9,13 +9,13 @@ const defaultOptions = {
9
const Plugin = () => ({
10
install(Vue, options) {
11
const _options = Object.assign({}, defaultOptions, options)
12
- const isDuplicateCmd = Vue.prototype[_options.key]
+ const isDuplicateKey = Vue.prototype[_options.key]
13
const isDuplicateComponent = Vue.options.components[_options.componentName]
14
15
if (isDuplicateComponent) {
16
- console.warn(isDuplicateCmd ? DUPLICATE_PLUGIN_COMPONENT : DUPLICATE_COMPONENT)
+ console.warn(isDuplicateKey ? DUPLICATE_PLUGIN_COMPONENT : DUPLICATE_COMPONENT)
17
} else {
18
- if (!isDuplicateCmd) {
+ if (!isDuplicateKey) {
19
bindPrototype(Vue, _options)
20
}
21
registComponent(Vue, _options)
0 commit comments