修改可视化大屏返回路径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 { useI18n } from '@/hooks/web/useI18n'
|
||||
import { updatePublishStatus } from '@/api/visualization/dataVisualization'
|
||||
|
||||
import { useRoute } from 'vue-router'
|
||||
const route = useRoute()
|
||||
let nameEdit = ref(false)
|
||||
let inputName = ref('')
|
||||
let nameInput = ref(null)
|
||||
@ -227,9 +228,10 @@ const editCanvasName = () => {
|
||||
}
|
||||
|
||||
const backToMain = () => {
|
||||
let url = '#/screen/index'
|
||||
if (dvInfo.value.id) {
|
||||
url = url + '?dvId=' + dvInfo.value.id
|
||||
let url = '#/module'
|
||||
const appId:any = route.query.appId
|
||||
if (appId) {
|
||||
url = url + '?id=' + appId
|
||||
}
|
||||
if (styleChangeTimes.value > 0) {
|
||||
ElMessageBox.confirm(t('visualization.change_save_tips'), {
|
||||
|
Loading…
Reference in New Issue
Block a user