在Nuxt.js应用程序中初始化Firebase的位置

火力 Vue.js

猴子

2020-03-23

我正在使用Nuxt.js编写网络应用Firebase我需要在哪个文件中初始化Firebase换句话说,该代码段放在哪里?

var config = {
    apiKey: "xxxxxxxxxx",
    authDomain: "xxxxxxxxx.firebaseapp.com",
    databaseURL: "https://xxxxxxxx.firebaseio.com",
    projectId: "xxxxxxxxx",
    storageBucket: "xxxxxxxxxxx.appspot.com",
    messagingSenderId: "xxxxxxxxxx"
};
firebase.initializeApp(config);

第2868篇《在Nuxt.js应用程序中初始化Firebase的位置》来自Winter(https://github.com/aiyld/aiyld.github.io)的站点

0个回答

问题类别

JavaScript Ckeditor Python Webpack TypeScript Vue.js React.js ExpressJS KoaJS CSS Node.js HTML Django 单元测试 PHP Asp.net jQuery Bootstrap IOS Android