From 5a041acd54e5fa4260da24deb273ae8f116f1096 Mon Sep 17 00:00:00 2001 From: nguyen van thai Date: Tue, 16 Jul 2024 09:58:54 +0700 Subject: [PATCH] Fix --- .../components/RecusiveNavItem.vue | 6 ++-- .../layouts/articles/details/Default.vue | 32 +++++++++---------- nuxt.config.ts | 2 +- 3 files changed, 20 insertions(+), 20 deletions(-) diff --git a/components/dynamic-page/page-component/templates/navigations/components/RecusiveNavItem.vue b/components/dynamic-page/page-component/templates/navigations/components/RecusiveNavItem.vue index 46946c2..4e467ed 100644 --- a/components/dynamic-page/page-component/templates/navigations/components/RecusiveNavItem.vue +++ b/components/dynamic-page/page-component/templates/navigations/components/RecusiveNavItem.vue @@ -20,7 +20,7 @@ const setGlobalState = (id: any) => { diff --git a/components/dynamic-page/page-section/layouts/articles/details/Default.vue b/components/dynamic-page/page-section/layouts/articles/details/Default.vue index fb9ee03..fd9b300 100644 --- a/components/dynamic-page/page-section/layouts/articles/details/Default.vue +++ b/components/dynamic-page/page-section/layouts/articles/details/Default.vue @@ -190,7 +190,7 @@ function findElementPathById(categories: any[], targetId: number, path: any[] = -
+
-
    -
  • +
      +
    • {{ tag.title }}
    @@ -221,38 +221,38 @@ function findElementPathById(categories: any[], targetId: number, path: any[] =
    -
      +
      • {{ category.title }}
      -
      - {{ currentArticle.topics[0].title }} +
      + {{ currentArticle?.topics[0].title }}
      -

      +

      -
      +
        -
      • +
      • - +
      - {{ author.title + (index < currentArticle.authors.length - 1 ? ', ' : '') }} + {{ author.title + (index < currentArticle.authors.length - 1 ? ', ' : '') }}
      - Xuất bản vào {{ formatDate(currentArticle.publishedOn, 'DD/MM/YYYY | hh:mm') }} + Xuất bản vào {{ formatDate(currentArticle?.publishedOn, 'DD/MM/YYYY | hh:mm') }}
      -
      - +
      +
      @@ -303,11 +303,11 @@ function findElementPathById(categories: any[], targetId: number, path: any[] =
      -

      +

      - +
    diff --git a/nuxt.config.ts b/nuxt.config.ts index ecc29b6..497a066 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -32,7 +32,7 @@ export default defineNuxtConfig({ runtimeConfig: { public: { - apiUrl: "http://api-portal.vpress.vn/api-v1", + apiUrl: "http://uat-api-portal.vpress.vn/api-v1", site: process.env.NUXT_PUBLIC_SITE_DEFAULT || "1", }, authSecret: process.env.AUTH_SECRET||"vpress"