Skip to content

Commit b7f98f3

Browse files
author
幾米
committed
修复错误,以及开发环境的插件实例丢失错误
1、cannot be keyed. Place the key on real elements instead. 2、Property or method "dayjs" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.
1 parent 3d41b07 commit b7f98f3

1 file changed

Lines changed: 11 additions & 8 deletions

File tree

‎box/chavy.boxjs.html‎

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -458,8 +458,8 @@
458458
</v-expansion-panel-header>
459459
<v-expansion-panel-content>
460460
<v-list dense nav class="ma-n4">
461-
<template v-for="(app, appIdx) in favApps" :key="app.id">
462-
<v-list-item dense @click="switchAppView(app.id)">
461+
<template v-for="(app, appIdx) in favApps">
462+
<v-list-item dense @click="switchAppView(app.id)" :key="app.id">
463463
<v-list-item-avatar class="elevation-3"><v-img :src="app.icon" /></v-list-item-avatar>
464464
<v-list-item-content>
465465
<v-list-item-title>{{app.name}} ({{app.id}})</v-list-item-title>
@@ -500,8 +500,8 @@
500500
</v-expansion-panel-header>
501501
<v-expansion-panel-content>
502502
<v-list dense nav class="ma-n4">
503-
<template v-for="(app, appIdx) in sub.apps" :key="app.id">
504-
<v-list-item dense @click="switchAppView(app.id)">
503+
<template v-for="(app, appIdx) in sub.apps">
504+
<v-list-item dense @click="switchAppView(app.id)" :key="app.id">
505505
<v-list-item-avatar class="elevation-3"><v-img :src="app.icon" /></v-list-item-avatar>
506506
<v-list-item-content>
507507
<v-list-item-title>{{app.name}} ({{app.id}})</v-list-item-title>
@@ -528,8 +528,8 @@
528528
</v-expansion-panel-header>
529529
<v-expansion-panel-content>
530530
<v-list dense nav class="ma-n4">
531-
<template v-for="(app, appIdx) in sysApps" :key="app.id">
532-
<v-list-item dense @click="switchAppView(app.id)">
531+
<template v-for="(app, appIdx) in sysApps">
532+
<v-list-item dense @click="switchAppView(app.id)" :key="app.id">
533533
<v-list-item-avatar class="elevation-3"><v-img :src="app.icon" /></v-list-item-avatar>
534534
<v-list-item-content>
535535
<v-list-item-title>{{app.name}} ({{app.id}})</v-list-item-title>
@@ -882,8 +882,8 @@ <h2>{{curapp.name}}</h2>
882882
<v-icon color="primary" @click="addAppSubDialog = true">mdi-plus-circle</v-icon>
883883
</v-btn>
884884
</v-subheader>
885-
<template v-for="(sub, subIdx) in appSubs" :key="sub.id">
886-
<v-list-item dense two-line @click="reloadAppSub(sub)">
885+
<template v-for="(sub, subIdx) in appSubs">
886+
<v-list-item dense two-line @click="reloadAppSub(sub)" :key="sub.id">
887887
<v-list-item-avatar v-if="sub.icon"><v-img :src="sub.icon" /></v-list-item-avatar>
888888
<v-list-item-avatar v-else color="primary"><v-icon dark>mdi-account</v-icon></v-list-item-avatar>
889889
<v-list-item-content>
@@ -1166,6 +1166,9 @@ <h2 :class="version === ver.version ? 'primary--text' : undefined">v{{ver.versio
11661166
<script src="https://cdn.jsdelivr.net/npm/vue-clipboard2@0.x/dist/vue-clipboard.min.js"></script>
11671167
<script src="https://cdn.jsdelivr.net/npm/monaco-editor@0.20.0/min/vs/loader.js"></script>
11681168
<script>
1169+
Vue.prototype.timeago = timeago
1170+
Vue.prototype.dayjs = dayjs
1171+
11691172
new Vue({
11701173
el: '#app',
11711174
vuetify: new Vuetify(),

0 commit comments

Comments
 (0)