mirror of
https://github.com/lana-k/sqliteviz.git
synced 2025-12-07 02:28:54 +08:00
send event when sharing
This commit is contained in:
@@ -18,6 +18,7 @@
|
|||||||
import fu from '@/lib/utils/fileIo'
|
import fu from '@/lib/utils/fileIo'
|
||||||
import database from '@/lib/database'
|
import database from '@/lib/database'
|
||||||
import Logs from '@/components/Logs'
|
import Logs from '@/components/Logs'
|
||||||
|
import events from '@/lib/utils/events'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'LoadView',
|
name: 'LoadView',
|
||||||
@@ -46,6 +47,14 @@ export default {
|
|||||||
maximize
|
maximize
|
||||||
} = this.$route.query
|
} = this.$route.query
|
||||||
|
|
||||||
|
events.send('share.load', null, {
|
||||||
|
has_data_url: !!dataUrl,
|
||||||
|
data_format: dataFormat,
|
||||||
|
has_inquiry_url: !!inquiryUrl,
|
||||||
|
inquiry_id_count: (inquiryIds || []).length,
|
||||||
|
maximize
|
||||||
|
})
|
||||||
|
|
||||||
await this.loadData(dataUrl, dataFormat)
|
await this.loadData(dataUrl, dataFormat)
|
||||||
const inquiries = await this.loadInquiries(inquiryUrl, inquiryIds)
|
const inquiries = await this.loadInquiries(inquiryUrl, inquiryIds)
|
||||||
if (inquiries && inquiries.length > 0) {
|
if (inquiries && inquiries.length > 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user