组件代码 Toast.vue<!-- * @Description: 提示组件 * @Version: 1.0.0 * @Autor: susu<nongxuewang@qq.com> * @Date: 2022-07-07 23:17:35 * @LastEditTime: 2022-07-20 14:06:09 --> {{ message }} 使用组件 <Toast v-if="toastData.showToast" :message="toastData.toastMessage" :status="toastData.status" />