Skip to content

Commit 7cd0f91

Browse files
committed
feat: add chart
1 parent 8859a8a commit 7cd0f91

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

frontend/src/views/dashboard/editor/ChatChartSelection.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,12 @@
3434
import { computed, reactive, ref } from 'vue'
3535
import { useI18n } from 'vue-i18n'
3636
const dialogShow = ref(false)
37-
const curDvType = ref('dashboard')
3837
const { t } = useI18n()
3938
const selectComponentCount = computed(() => Object.keys(state.curMultiplexingComponents).length)
4039
const state = reactive({
4140
curMultiplexingComponents: {},
4241
})
43-
const dialogInit = (dvType = 'dashboard') => {
44-
curDvType.value = dvType
42+
const dialogInit = () => {
4543
dialogShow.value = true
4644
state.curMultiplexingComponents = {}
4745
}

frontend/src/views/dashboard/editor/Toolbar.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,10 @@ const snapshotStore = snapshotStoreWithOut()
2323
const { snapshotIndex } = storeToRefs(snapshotStore)
2424
const emits = defineEmits(['addComponent'])
2525
const resourceGroupOptRef = ref(null)
26+
const chatChartSelectionRef = ref(null)
2627
const openViewDialog = () => {
27-
// do addComponent
28+
// @ts-expect-error @typescript-eslint/ban-ts-comment
29+
chatChartSelectionRef.value?.dialogInit()
2830
}
2931
3032
let nameEdit = ref(false)

0 commit comments

Comments
 (0)