我已经定义了一个像这样的 firebase 函数:
exports.getTestResults = functions.region("europe-west3").https.onCall((data, context) => {
return {
test: 'Test 123'
}
})
Run Code Online (Sandbox Code Playgroud)
如果我调用这个函数如下
var getTestResults = firebase.app().functions('europe-west3').httpsCallable('getTestResults');
getTestResults({ }).then(response => {
console.log(response);
}).catch(ex => {
console.log('EXC: ' + ex);
})
Run Code Online (Sandbox Code Playgroud)
我在 firebase 函数日志中收到此错误/警告/任何内容
Callable request verification passed {"verifications":{"app":"MISSING","auth":"VALID"}}
Run Code Online (Sandbox Code Playgroud)
这是什么原因?
Vue.js + node.js 是我的应用程序的基础。我想使用vue-confirm-dialognpm 中的包,但此代码行导致错误:
import VueConfirmDialog from 'vue-confirm-dialog'
Run Code Online (Sandbox Code Playgroud)
我已经执行了:npm install --save vue-confirm-dialog并且模块 vue-confirm-dialog 出现在 package.json 文件中。
错误消息Module not found: Error: Can't resolve 'vue-confirm-dialog'仍然出现。
在 Vuetify 2 中,v-autocomplete 组件有一个更改事件。一个例子:
<v-autocomplete
label="Choose stock"
v-model="selected_stock"
:items="current_stocks"
:change="stockSelected"
item-value="id"
item-title="name"></v-autocomplete>
stockSelected(selected_stock) {
console.log(selected_stock);
}
Run Code Online (Sandbox Code Playgroud)
在 Vuetify 3 中,此事件似乎不再存在。如何跟踪Vuetify 3 中的选择更改?
我有一个来自 vuetify 的 v-data-table,其中有两个点击事件。一个被触发了(deleteBooking),另一个没有被触发(booking_clicked)?!该按钮用于删除项目。行单击事件是为了向用户显示所单击的行的附加信息。
<v-data-table
item-key="id"
v-model="selected_bookings"
:loading="isLoading"
:items="tmp_bookings"
:headers="headers"
:single-select="single_select"
:hide-default-footer="true"
@click:row="booking_clicked"
:footer-props="{
'items-per-page-options': [-1]
}"
class="elevation-1">
<template slot="item" slot-scope="row">
<tr>
<td>{{row.item.booking_text}}</td>
<td>
<v-btn class="mx-2" dark small color="red" @click="deleteBooking(row.item)">
<v-icon dark>mdi-delete-forever</v-icon>
</v-btn>
</td>
</tr>
</template>
</v-data-table>
booking_clicked(item){
console.log(item);
}
deleteBooking(booking_item) {
console.log(booking_item);
},
Run Code Online (Sandbox Code Playgroud)