Bladeren bron

修改收藏

zs 9 maanden geleden
bovenliggende
commit
972eb8a53f

+ 5 - 0
src/store/api/platform/footplate.js

@@ -21,6 +21,10 @@ export const FootplateStore = defineStore('footplate', () => {
     const res = await axios.$get(`${url}/list`, cond)
     return res
   }
+  const detail = async (payload) => {
+    const res = await axios.$get(`${url}/detail/${payload}`)
+    return res
+  }
   const fetch = async (payload) => {
     const res = await axios.$get(`${url}/${payload}`)
     return res
@@ -41,6 +45,7 @@ export const FootplateStore = defineStore('footplate', () => {
   return {
     query,
     list,
+    detail,
     fetch,
     create,
     update,

+ 5 - 0
src/store/api/platform/news.js

@@ -13,6 +13,10 @@ export const NewsStore = defineStore('news', () => {
     const res = await axios.$get(`${url}`, cond)
     return res
   }
+  const detail = async (payload) => {
+    const res = await axios.$get(`${url}/detail/${payload}`)
+    return res
+  }
   const fetch = async (payload) => {
     const res = await axios.$get(`${url}/${payload}`)
     return res
@@ -33,6 +37,7 @@ export const NewsStore = defineStore('news', () => {
   return {
     query,
     fetch,
+    detail,
     create,
     update,
     del

+ 5 - 0
src/store/api/platform/support.js

@@ -21,6 +21,10 @@ export const SupportStore = defineStore('support', () => {
     const res = await axios.$get(`${url}/list`, cond)
     return res
   }
+  const detail = async (payload) => {
+    const res = await axios.$get(`${url}/detail/${payload}`)
+    return res
+  }
   const fetch = async (payload) => {
     const res = await axios.$get(`${url}/${payload}`)
     return res
@@ -41,6 +45,7 @@ export const SupportStore = defineStore('support', () => {
   return {
     query,
     list,
+    detail,
     fetch,
     create,
     update,

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

@@ -219,7 +219,7 @@ const searchOther = async () => {
 const search = async () => {
   let id = route.query.id
   if (id) {
-    let res = await store.fetch(id)
+    let res = await store.detail(id)
     if (res.errcode == '0') info.value = res.data
   }
 }

+ 1 - 1
src/views/detail/newsDetail.vue

@@ -150,7 +150,7 @@ const searchOther = async () => {
 const search = async () => {
   let id = route.query.id
   if (id) {
-    let res = await store.fetch(id)
+    let res = await store.detail(id)
     if (res.errcode == '0') info.value = res.data
   }
 }

+ 1 - 1
src/views/detail/platformDetail.vue

@@ -138,7 +138,7 @@ const searchOther = async () => {
 const search = async () => {
   let id = route.query.id
   if (id) {
-    let res = await store.fetch(id)
+    let res = await store.detail(id)
     if (res.errcode == '0') info.value = res.data
   }
 }

+ 1 - 1
src/views/detail/serviceDetail.vue

@@ -108,7 +108,7 @@ const searchOther = async () => {
 const search = async () => {
   let id = route.query.id
   if (id) {
-    let res = await store.fetch(id)
+    let res = await store.detail(id)
     if (res.errcode == '0') info.value = res.data
   }
 }