mirror of
https://github.com/dataease/dataease.git
synced 2026-05-15 13:32:18 +08:00
fix(仪表板、数据大屏): 修复仪表板改名后,移动端消失,需要再进去保存才看得见问题 #14423
This commit is contained in:
@@ -6,6 +6,7 @@ export interface ResourceOrFolder {
|
||||
pid?: number | string
|
||||
nodeType: 'folder' | 'leaf'
|
||||
type: string
|
||||
mobileLayout: boolean
|
||||
}
|
||||
|
||||
export interface Panel {
|
||||
|
||||
@@ -30,7 +30,8 @@ const { t } = useI18n()
|
||||
|
||||
const state = reactive({
|
||||
tData: [],
|
||||
nameList: []
|
||||
nameList: [],
|
||||
targetInfo: null
|
||||
})
|
||||
|
||||
const showParentSelected = ref(false)
|
||||
@@ -136,6 +137,7 @@ const placeholder = ref('')
|
||||
|
||||
const optInit = (type, data: BusiTreeNode, exec, parentSelect = false) => {
|
||||
showParentSelected.value = parentSelect
|
||||
state.targetInfo = data
|
||||
nodeType.value = type
|
||||
const optSource = data.leaf || type === 'leaf' ? sourceLabel.value : t('visualization.folder')
|
||||
const placeholderLabel =
|
||||
@@ -253,7 +255,8 @@ const saveResource = () => {
|
||||
const params: ResourceOrFolder = {
|
||||
nodeType: nodeType.value as 'folder' | 'leaf',
|
||||
name: resourceForm.name,
|
||||
type: curCanvasType.value
|
||||
type: curCanvasType.value,
|
||||
mobileLayout: state.targetInfo?.extraFlag
|
||||
}
|
||||
|
||||
switch (cmd.value) {
|
||||
|
||||
Reference in New Issue
Block a user