快乐的梦鱼 пре 2 недеља
родитељ
комит
c2332722df

+ 0 - 9
src/api/traval/TravalContent.ts

@@ -29,14 +29,6 @@ export class TravalContentApi extends CommonContentApi {
     super(undefined, 17, "路线");
   }
 
-  async getTravalList(id: number) {
-    const res = await this.getContentDetail(id, GetContentDetailItem, 17, {
-      'scenic_spots': '1',
-    });
-    res.scenicSpotsList = (res.scenicSpotsList as any[]).map(p => transformDataModel<TravalListItem>(TravalListItem, p));
-    res.keywords = (res.scenicSpotsList as any[]).map(p => p.name);
-    return res;
-  }
   async getTravalRouteList(params: GetContentListParams) {
     params.setSelfValues({
       pid: 8768,
@@ -48,7 +40,6 @@ export class TravalContentApi extends CommonContentApi {
         p.scenicSpotsList = transformArrayDataModel<TravalListItem>(TravalListItem, p.scenicSpotsList as any[], '路线景点列表', true);
       }
     });
-    res.list.unshift(await this.getTravalList(8768) as any);
     return res;
   }
 

+ 1 - 2
src/common/composeabe/SimpleDataLoader.ts

@@ -39,8 +39,7 @@ export function useSimpleDataLoader<T, P = any>(
     } catch(e) {
       loadError.value = formatError(e);
       loadStatus.value = 'error';
-      console.log(e);
-      
+      console.error(e);
     } finally {
       if (showGlobalLoading)
         uni.hideLoading();

+ 1 - 0
src/common/composeabe/SimplePageContentLoader.ts

@@ -27,6 +27,7 @@ export function useSimplePageContentLoader<T, P = any>(
       loadStatus.value = 'finished';
       loadError.value = '';
     } catch(e) {
+      console.error(e);
       loadError.value = formatError(e);
       loadStatus.value = 'error';
     }