Vue warn Do not use built-in or reserved HTML elements as component id title
This warning message is displayed in Vue.js when you are trying to use a reserved or built-in HTML element as the id for a Vue component. In this case, you are using "title" as the id for your component, which is a reserved HTML element.
To fix this warning, you should choose a different and unique id for your component that does not conflict with any reserved or built-in HTML elements. For example, you can prefix your id with a specific string or use a different name altogether.
Here's an example of how you can change the id of your component:
<template>
<div id="my-component">
<!-- Component content goes here -->
</div>
</template>
<script>
export default {
// Component options go here
}
</script>
<style>
/* Component styles go here */
</style>
In the example above, I have changed the id of the component to "my-component" to avoid using the reserved HTML element "title"
原文地址: https://www.cveoy.top/t/topic/hPpt 著作权归作者所有。请勿转载和采集!