diff --git a/components/lib/inputswitch/InputSwitch.vue b/components/lib/inputswitch/InputSwitch.vue index 8d3d8c5f3..0045a4fc3 100755 --- a/components/lib/inputswitch/InputSwitch.vue +++ b/components/lib/inputswitch/InputSwitch.vue @@ -32,7 +32,7 @@ export default { emits: ['update:modelValue', 'change', 'focus', 'blur'], methods: { getPTOptions(key) { - const _ptm = root === 'root' ? this.ptmi : this.ptm; + const _ptm = key === 'root' ? this.ptmi : this.ptm; return _ptm(key, { context: {