-- fix bug

This commit is contained in:
yuping
2023-02-17 03:44:54 +08:00
parent 7f68a59a44
commit 99aea96baf
3 changed files with 105 additions and 123 deletions

View File

@@ -12,7 +12,7 @@
</div>
</template>
<script setup>
import {computed, defineProps, ref, watch} from "vue";
import {computed, defineProps, ref} from "vue";
import back from '@/assets/image/pathdetails/pathDetailBack.png'
import nameBack from '@/assets/image/pathdetails/pathDetailImg.png'
import currentBack from '@/assets/image/pathdetails/pathDetailImgSelect.png'
@@ -29,7 +29,7 @@ const props = defineProps({
const router = useRouter();
const visiable = ref(true)
const imageAttrs = {
'路径图背景-1671015331292.png': {
'路径图背景': {
width: 1437,
height: 594,
positions: [
@@ -45,7 +45,7 @@ const imageAttrs = {
const imgAttr = computed(() => imageAttrs[Object.keys(imageAttrs).find(e => props.img.includes(e))] || {})
const current = computed(() => props.detail.chapterDtoList.findIndex(e => e.chapterId === props.detail.currentStageId))
const current = computed(() => props.detail.chapterDtoList.findIndex(e => e.id === props.detail.currentStageId))
function show() {
visiable.value = true
@@ -58,11 +58,11 @@ function toDetail(i) {
(import.meta.env.MODE === "development" || import.meta.env.MODE === "test")
? router.push({
path: "/pathdetails",
query: {routerId: props.detail.routerId, routerName: props.detail.routerName},
query: {routerId: props.detail.id, routerName: props.detail.name},
})
: window.open(
`${window.location.protocol + import.meta.env.VITE_BOE_PATH_DETAIL_URL}/pathdetails&params=${encodeURIComponent(
`routerId=${props.detail.routerId}&routerName=${props.detail.routerName}`
`routerId=${props.detail.id}&routerName=${props.detail.name}`
)}`
,'_top');
}