摘要: index.js // 插件定义第一种方式,对象:拥有 install() 方法的对象 const myPlugin = { install(app, options) { // 配置全局方法 app.config.globalProperties.globalMethod = function ( 阅读全文
posted @ 2024-11-21 09:17 充实地生活着 阅读(63) 评论(0) 推荐(0)