mirror of
https://github.com/lana-k/sqliteviz.git
synced 2025-12-07 02:28:54 +08:00
fix tests
This commit is contained in:
@@ -1,16 +1,13 @@
|
||||
<template>
|
||||
<div id="app">
|
||||
<router-view />
|
||||
<modals-container />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import storedInquiries from '@/lib/storedInquiries'
|
||||
import { ModalsContainer } from 'vue-final-modal'
|
||||
|
||||
export default {
|
||||
components: { ModalsContainer },
|
||||
computed: {
|
||||
inquiries() {
|
||||
return this.$store.state.inquiries
|
||||
|
||||
@@ -30,14 +30,16 @@ export default {
|
||||
let inquiryIndex
|
||||
// Set createdAt
|
||||
if (newName) {
|
||||
value.createdAt = new Date()
|
||||
value.createdAt = new Date().toJSON()
|
||||
} else {
|
||||
inquiryIndex = myInquiries.findIndex(
|
||||
oldInquiry => oldInquiry.id === inquiryTab.id
|
||||
)
|
||||
|
||||
value.createdAt =
|
||||
inquiryIndex !== -1 ? myInquiries[inquiryIndex].createdAt : new Date()
|
||||
inquiryIndex !== -1
|
||||
? myInquiries[inquiryIndex].createdAt
|
||||
: new Date().toJSON()
|
||||
}
|
||||
|
||||
// Insert in inquiries list
|
||||
|
||||
Reference in New Issue
Block a user