|
@@ -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,
|