This is because the data in the page has not yet been loaded when substrings are used.
Error code:
you can use the v – if
is amended as:
Read More:
- Vue: cannot read property ‘substring’ of undefined“
- Vue error in render: “typeerror: cannot read property ‘name’ of undefined”
- [Solved] Vue Error: TypeError: Cannot read property ‘end‘ of undefined
- [_ Note] Vue.js reported an error: Cannot read property’validate’ of undefined”
- Vue error resolution: TypeError: Cannot read property’_t’ of undefined”
- Vue error resolution: typeerror: cannot read property ‘_ t’ of undefined”
- In Vue, use echorts to report an error: “typeerror: cannot read property ‘init’ of undefined” error reporting reason and solution
- Vue uses this. $refs. Subcomponent Ref. method to report an error: cannot read property ‘resetfields’ of undefined problem
- Error in created hook: “typeerror: cannot read property ‘cm’ of undefined”
- Error in mounted hook: “TypeError: Cannot read property ‘init‘ of undefined“
- Cannot read property ‘this compilation’ of undefined appears in copy webpack plugin
- JS prompt cannot read property ‘style’ of undefined
- Using pop-up window and I18N, error in render: “typeerror: cannot read property” appears_ T ‘of undefined’ solution
- Datatable plug-in error: uncaught typeerror: cannot read property ‘style’ of undefined
- Cannot read property ‘catch‘ of undefined“
- Cannot read property ‘properties’ of undefined
- TypeError: Cannot read property thisCompilation of undefined
- TypeError: Cannot read property ‘username‘ of undefined
- Cannot read property ‘i18n‘ of undefined
- Uncaught type error: cannot read property ‘MSIE’ of undefined