const app = createApp(App);
//定义全局方法 $auth
// $auth 方法可以在全局中使用
app.config.globalProperties.$auth = function(){console.log(55555)};
微信扫一扫
const app = createApp(App);
//定义全局方法 $auth
// $auth 方法可以在全局中使用
app.config.globalProperties.$auth = function(){console.log(55555)};
相关推荐