更新 src/views/chart/ContentEdit/index.vue
This commit is contained in:
parent
6c73978c09
commit
990ae7e230
@ -87,7 +87,14 @@ import { onMounted, computed, provide } from 'vue'
|
|||||||
import { chartColors } from '@/settings/chartThemes/index'
|
import { chartColors } from '@/settings/chartThemes/index'
|
||||||
import { MenuEnum } from '@/enums/editPageEnum'
|
import { MenuEnum } from '@/enums/editPageEnum'
|
||||||
import { CreateComponentType, CreateComponentGroupType } from '@/packages/index.d'
|
import { CreateComponentType, CreateComponentGroupType } from '@/packages/index.d'
|
||||||
import { animationsClass, getFilterStyle, getTransformStyle, getBlendModeStyle, colorCustomMerge } from '@/utils'
|
import {
|
||||||
|
animationsClass,
|
||||||
|
getFilterStyle,
|
||||||
|
getTransformStyle,
|
||||||
|
getBlendModeStyle,
|
||||||
|
colorCustomMerge,
|
||||||
|
addWindowUnload
|
||||||
|
} from '@/utils'
|
||||||
import { useContextMenu } from '@/views/chart/hooks/useContextMenu.hook'
|
import { useContextMenu } from '@/views/chart/hooks/useContextMenu.hook'
|
||||||
import { MenuOptionsItemType } from '@/views/chart/hooks/useContextMenu.hook.d'
|
import { MenuOptionsItemType } from '@/views/chart/hooks/useContextMenu.hook.d'
|
||||||
import { useChartEditStore } from '@/store/modules/chartEditStore/chartEditStore'
|
import { useChartEditStore } from '@/store/modules/chartEditStore/chartEditStore'
|
||||||
@ -110,6 +117,9 @@ const chartEditStore = useChartEditStore()
|
|||||||
const { handleContextMenu } = useContextMenu()
|
const { handleContextMenu } = useContextMenu()
|
||||||
const { dataSyncFetch, intervalDataSyncUpdate } = useSync()
|
const { dataSyncFetch, intervalDataSyncUpdate } = useSync()
|
||||||
|
|
||||||
|
// 加入网页关闭提示
|
||||||
|
addWindowUnload()
|
||||||
|
|
||||||
// 编辑时注入scale变量,消除警告
|
// 编辑时注入scale变量,消除警告
|
||||||
provide(SCALE_KEY, null)
|
provide(SCALE_KEY, null)
|
||||||
|
|
||||||
@ -186,7 +196,7 @@ onMounted(() => {
|
|||||||
// 获取数据
|
// 获取数据
|
||||||
dataSyncFetch()
|
dataSyncFetch()
|
||||||
// 定时更新数据
|
// 定时更新数据
|
||||||
intervalDataSyncUpdate()
|
// intervalDataSyncUpdate()
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user