diff --git a/src/components/Editor/src/Editor.vue b/src/components/Editor/src/Editor.vue index d88cdb15..9b5b3515 100644 --- a/src/components/Editor/src/Editor.vue +++ b/src/components/Editor/src/Editor.vue @@ -7,9 +7,9 @@ import { isNumber } from '@/utils/is' import { ElMessage } from 'element-plus' import { useLocaleStore } from '@/stores/modules/locale' import { getAccessToken, getTenantId } from '@/utils/auth' - +import { useAdminInfo } from '@/stores/adminInfo' defineOptions({ name: 'Editor' }) - +const adminInfo = useAdminInfo() type InsertFnType = (url: string, alt: string, href: string) => void const localeStore = useLocaleStore() @@ -104,8 +104,7 @@ const editorConfig = computed((): IEditorConfig => { // 自定义增加 http header headers: { Accept: '*', - Authorization: 'Bearer ' + getAccessToken(), - 'tenant-id': getTenantId() + Authorization: adminInfo.getToken(), }, // 跨域是否传递 cookie ,默认为 false diff --git a/src/components/echarts/MyEchart.vue b/src/components/echarts/MyEchart.vue index 1b0f1eb2..034dd63f 100644 --- a/src/components/echarts/MyEchart.vue +++ b/src/components/echarts/MyEchart.vue @@ -98,7 +98,7 @@ const initChart = () => { end: 100 } ], - toolbox:props.options?.toolbox||{}, + toolbox: props.options?.toolbox || {}, color: props.options?.color || color, series: props.options?.series, ...props.options?.options @@ -141,6 +141,7 @@ const handlerYAxis = () => { nameTextStyle: { color: '#000' }, + splitNumber: 5, minInterval: 1, axisLine: { show: true, diff --git a/src/components/form/datePicker/index.vue b/src/components/form/datePicker/index.vue index edc353ee..90fd570d 100644 --- a/src/components/form/datePicker/index.vue +++ b/src/components/form/datePicker/index.vue @@ -1,5 +1,5 @@