修改现场反馈问题

This commit is contained in:
GGJ
2024-10-10 10:46:10 +08:00
parent 0877ae5df0
commit facd4f55c5
12 changed files with 198 additions and 313 deletions

View File

@@ -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