修改现场反馈问题
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user