Explorar el Código

Merge branch 'master' of http://git.cc-lotus.info/Information/cxyy-web

zs hace 8 meses
padre
commit
f3330abe87
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      src/views/detail/matchDetail.vue

+ 2 - 2
src/views/detail/matchDetail.vue

@@ -225,8 +225,8 @@ const toClose = () => {
 }
 }
 const getUrl = (item, type) => {
 const getUrl = (item, type) => {
   if (item) {
   if (item) {
-    if (type == 'array') return `${import.meta.env.VITE_APP_HOST}${item[0].uri}`
-    else return `${import.meta.env.VITE_APP_HOST}${item.uri}`
+    if (type == 'array') return `${import.meta.env.VITE_APP_HOST}${get(item, '0.uri')}`
+    else return `${import.meta.env.VITE_APP_HOST}${get(item, 'uri')}`
   }
   }
 }
 }
 // 报名
 // 报名