Vue: cannot read property ‘substring’ of undefined“

TypeError: Cannot read property ‘substring’ of undefined ‘TypeError: Cannot read property’ substring ‘of undefined’
Reason: The string used to intercept is empty.
Resolution: Null the string before,

Read More: