修改可视化大屏返回路径bug
This commit is contained in:
parent
e12552eb1f
commit
a8ce480e14
@ -51,7 +51,8 @@ import { useUserStoreWithOut } from '@/store/modules/user'
|
|||||||
import TabsGroup from '@/custom-component/component-group/TabsGroup.vue'
|
import TabsGroup from '@/custom-component/component-group/TabsGroup.vue'
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
import { useI18n } from '@/hooks/web/useI18n'
|
||||||
import { updatePublishStatus } from '@/api/visualization/dataVisualization'
|
import { updatePublishStatus } from '@/api/visualization/dataVisualization'
|
||||||
|
import { useRoute } from 'vue-router'
|
||||||
|
const route = useRoute()
|
||||||
let nameEdit = ref(false)
|
let nameEdit = ref(false)
|
||||||
let inputName = ref('')
|
let inputName = ref('')
|
||||||
let nameInput = ref(null)
|
let nameInput = ref(null)
|
||||||
@ -227,9 +228,10 @@ const editCanvasName = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const backToMain = () => {
|
const backToMain = () => {
|
||||||
let url = '#/screen/index'
|
let url = '#/module'
|
||||||
if (dvInfo.value.id) {
|
const appId:any = route.query.appId
|
||||||
url = url + '?dvId=' + dvInfo.value.id
|
if (appId) {
|
||||||
|
url = url + '?id=' + appId
|
||||||
}
|
}
|
||||||
if (styleChangeTimes.value > 0) {
|
if (styleChangeTimes.value > 0) {
|
||||||
ElMessageBox.confirm(t('visualization.change_save_tips'), {
|
ElMessageBox.confirm(t('visualization.change_save_tips'), {
|
||||||
|
Loading…
Reference in New Issue
Block a user