mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-student.git
synced 2025-12-13 21:06:47 +08:00
-- fix bug
This commit is contained in:
@@ -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¶ms=${encodeURIComponent(
|
||||
`routerId=${props.detail.routerId}&routerName=${props.detail.routerName}`
|
||||
`routerId=${props.detail.id}&routerName=${props.detail.name}`
|
||||
)}`
|
||||
,'_top');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user