Vue3 - 'xxx' is assigned a value but never used (no-unused-vars) error solution, if there are unused functions, imports, data data, etc., an error will be reported

foreword

In the development of the vue3 project, an error is reported after the code is written and the preview is saved.

This article perfectly solves the problem of 'xxx' is assigned a value but never used (no-unused-vars) error,

If you also get this error, then this article can help you.

insert image description here

insert image description here

solution

This is due to verification, which can be passed

Guess you like

Origin blog.csdn.net/weixin_44198965/article/details/132225297