mirror of
https://gitee.com/dromara/go-view.git
synced 2026-05-30 00:00:05 +08:00
feat: 新增编辑阶段 mock 接口轮询请求功能
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { onUnmounted, ref, nextTick, computed } from 'vue'
|
||||
import { usePreviewScale } from '@/hooks/index'
|
||||
import type { ChartEditStorageType } from '..'
|
||||
import type { ChartEditStorageType } from '../index.d'
|
||||
|
||||
export const useScale = (localStorageInfo: ChartEditStorageType) => {
|
||||
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
import { useChartEditStore } from '@/store/modules/chartEditStore/chartEditStore'
|
||||
import { ChartEditStoreEnum } from '@/store/modules/chartEditStore/chartEditStore.d'
|
||||
import type { ChartEditStorageType } from '../index.d'
|
||||
|
||||
// store 相关
|
||||
export const useStore = (localStorageInfo: ChartEditStorageType) => {
|
||||
const chartEditStore = useChartEditStore()
|
||||
chartEditStore.requestGlobalConfig = localStorageInfo[ChartEditStoreEnum.REQUEST_GLOBAL_CONFIG]
|
||||
}
|
||||
Reference in New Issue
Block a user