File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
frontend/src/views/dashboard/editor Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 3434import { computed , reactive , ref } from ' vue'
3535import { useI18n } from ' vue-i18n'
3636const dialogShow = ref (false )
37- const curDvType = ref (' dashboard' )
3837const { t } = useI18n ()
3938const selectComponentCount = computed (() => Object .keys (state .curMultiplexingComponents ).length )
4039const 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}
Original file line number Diff line number Diff line change @@ -23,8 +23,10 @@ const snapshotStore = snapshotStoreWithOut()
2323const { snapshotIndex } = storeToRefs (snapshotStore )
2424const emits = defineEmits ([' addComponent' ])
2525const resourceGroupOptRef = ref (null )
26+ const chatChartSelectionRef = ref (null )
2627const openViewDialog = () => {
27- // do addComponent
28+ // @ts-expect-error @typescript-eslint/ban-ts-comment
29+ chatChartSelectionRef .value ?.dialogInit ()
2830}
2931
3032let nameEdit = ref (false )
You can’t perform that action at this time.
0 commit comments