purui il y a 1 semaine
Parent
commit
855aff294a
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      packages/app/src/pages-sub/home/content/index.vue

+ 2 - 1
packages/app/src/pages-sub/home/content/index.vue

@@ -75,7 +75,7 @@ const formatData = (res) => {
 onLoad(async (query: { id: string; type?: 'banner'; data?: string }) => {
   id.value = query.id
   type.value = query.type
-  await updateSetIndexConfig({id:query.id})
+  
   if (type.value === 'banner') {
     request.value = () =>
       getBanner(id.value).then((res) => {
@@ -95,6 +95,7 @@ onLoad(async (query: { id: string; type?: 'banner'; data?: string }) => {
         }
       })
   } else if (type.value === 'home-banner') {
+	await updateSetIndexConfig({id:query.id})
 	request.value = () => getHomeBanner(id.value).then((res) => {
         uni.setNavigationBarTitle({
           title: res.data?.name,