From 54e0b9707bb34259dfccbe0c792b50e12b267e13 Mon Sep 17 00:00:00 2001 From: jack <jack.su@pollex.com.tw> Date: 星期二, 08 八月 2023 17:23:15 +0800 Subject: [PATCH] Merge branch '滲透' of ssh://dev.pollex.com.tw:29418/pcalife/PAM into 滲透 --- PAMapp/nuxt.config.js | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/PAMapp/nuxt.config.js b/PAMapp/nuxt.config.js index 3297a96..50af78f 100644 --- a/PAMapp/nuxt.config.js +++ b/PAMapp/nuxt.config.js @@ -39,6 +39,7 @@ '~/plugins/vue-scroll-picker', '~/plugins/filters/date.filter.ts', '~/plugins/filters/age.filter.ts', + '~/plugins/filters/consultation-method.filter.ts', '~/plugins/filters/appointment-fail-reason.filter.ts', '~/plugins/filters/serve-area.filter.ts', ], @@ -62,15 +63,18 @@ // modules: [ // '@nuxtjs/gtm', // ], - + // plugins: [ // '~/plugins/gtm' // ], + gtm: { enabled: true, /* see below */ debug: false, - id: 'GTM-W2XMVJZ', + id: process.env.ENV === 'prod' + ? 'GTM-TFKVGTH' + : process.env.ENV === 'uat' ? 'GTM-W2XMVJZT' : 'GTM_XXXXXXX', layer: 'dataLayer', variables: {}, @@ -107,6 +111,6 @@ router: { base: process.env.ENV === 'dev' ? '' : '/pam/', mode: 'hash', - middleware: ['getUrlQuery', 'errorRoute'] + middleware: [ 'isLogin', 'getUrlQuery', 'errorRoute'] } } -- Gitblit v1.9.3