node.js - Firebase 不读取随机键
问题描述
我尝试了一个 firebase 读取脚本,如果 ket 的类型为 0 1 2 3 4 读取,但如果它是随机类型(M5ppDoMZ8lnqBtT8Zme),它不会被读取,我不明白为什么?
import {gamesRef} from './firebase'
import { GameTypeEnum, PiattaformaEnum,nuovofilm } from './models/game'
export default {
firebase: {
games: gamesRef.orderByChild('titolo')
//games : gamesRef
},
data() {
return {
gameTypes: GameTypeEnum.properties,
gamePlatforms: PiattaformaEnum.properties,
nuoevo : nuovofilm,
games : gamesRef,
film: gamesRef,
// gam : gamesRef.orderByChild('titolo'),
fields: ['Indice','titolo', 'regista','locandina', 'anno','Modifica','Cancella','piattaforma'],
//fields: ['titolo', 'autore', 'anno', ''],
datas : [1,2,3,4],
// fields: ['first_name', 'last_name', 'age'],
items: [
{ age: 40, first_name: 'Dickerson', last_name: 'Macdonald' },
{ age: 21, first_name: 'Larsen', last_name: 'Shaw' },
{ age: 89, first_name: 'Geneva', last_name: 'Wilson' }
],
newGame: {
Titolo: '',
SoftwareHouse: '',
Tipo: GameTypeEnum.FPS,
Piattaforma: PiattaformaEnum.PC
},
<b-table striped hover :items="games" :fields="fields">
<template v-slot:cell(indice)="data">
{{ data.index + 1 }}
</template>
<template v-slot:cell(locandina)>
<img :src="valore" width="100" />
</template>
<template v-slot:cell(Modifica)>
<button type="button" class="btn btn-warning">x</button>
</template>
<template v-slot:cell(Cancella)>
<button type="button" class="btn btn-danger">y</button>
</template>
<template v-slot:cell(index)="data">
{{ data.index + 1 }}
<b-btn size="sm" variant="warning">X</b-btn>
{{ data.index + 1 }}
<b-btn size="sm" variant="warning">y</b-btn>
</template>
解决方案
推荐阅读
- sql - SSRS 未从 SQL Server 存储过程中提取最新列
- c# - 从 txt 下方捕获行片段
- python - “initialize_app '默认的 Firebase 应用已经存在。” 云函数 pub sub
- sql-server - 无法使用 TRUNCATEion 语句
- c# - 如何立即取消 Firebase 存储上传任务?
- sql - 如何从 <
我需要创建一个 linux 脚本,在这个脚本中我需要捕获 Oracle 中的 SQL 查询的结果,
<<EOF
并将其放入一个变量中,例如:sqlplus -s /nolog<<EOF conn c##myuser/mypassowd col
- sql - 不匹配的输入“来自”期望
SQL - javascript - 在查询中分配值并且它没有更新
- django - Django model.field 验证器不会为必需的布尔字段执行
- python - 如何在python中访问类对象属性
- sql - 不匹配的输入“来自”期望