Merge pull request #11667 from dataease/pr@dev-v2_st

feat(嵌入式): 嵌入式场景下,title无效,使用第三方设置
This commit is contained in:
dataeaseShu 2024-08-21 15:11:49 +08:00 committed by GitHub
commit d85dc89114
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 2 deletions

View File

@ -960,8 +960,14 @@ const init = (queryId: string) => {
.then(([dq, p]) => {
dq.filter(ele => !!ele).forEach(ele => {
ele.activelist = 'dimensionList'
ele.fields.parameterList = p.filter(itx => itx.datasetGroupId === ele.id)
ele.fields.parameterList = p.filter(
itx => itx.datasetGroupId === ele.id && !itx.params?.length
)
ele.hasParameter = !!ele.fields.parameterList.length
ele.fields.dimensionList = (ele.fields.dimensionList || []).filter(
itx => !itx.params?.length
)
ele.fields.quotaList = (ele.fields.quotaList || []).filter(itx => !itx.params?.length)
datasetMap[ele.id] = ele
})
fields.value = datasetFieldList.value

View File

@ -223,12 +223,12 @@ export const useAppearanceStore = defineStore('appearanceStore', {
this.name = data.name
this.foot = data.foot
this.footContent = data.footContent
if (isDataEaseBi) return
if (this.name) {
document.title = this.name
} else {
document.title = 'DataEase'
}
if (isDataEaseBi) return
const link = document.querySelector('link[rel="icon"]')
if (link) {
if (this.web) {