Browse Source

查找打包問題

Dev
18300102974 2 years ago
parent
commit
e650090d3a
  1. 4
      FrontEnd/components/home/CookieUnderModal.vue
  2. 10
      FrontEnd/pages/exhibition/_id.vue

4
FrontEnd/components/home/CookieUnderModal.vue

@ -145,17 +145,21 @@ export default {
}; };
}, },
created(){ created(){
if(process.client){
let storeCache = this.$cookies.get("storeCache"); let storeCache = this.$cookies.get("storeCache");
if(storeCache!=undefined){ if(storeCache!=undefined){
this.isCookieHasBeenClicked = JSON.parse(storeCache); this.isCookieHasBeenClicked = JSON.parse(storeCache);
} }
}
}, },
methods:{ methods:{
closeCookie(){ closeCookie(){
if(process.client){
this.isCookieHasBeenClicked = false; this.isCookieHasBeenClicked = false;
this.$cookies.set("storeCache",JSON.stringify(false),1); this.$cookies.set("storeCache",JSON.stringify(false),1);
} }
} }
}
}; };
</script> </script>

10
FrontEnd/pages/exhibition/_id.vue

@ -1,14 +1,14 @@
<template> <template>
<div <div
class="exhibition-content tw-grid tw-grid-cols-1 tw-gap-[30px] tw-mt-[20px] tw-mb-[60px] md:tw-px-[30px] md:tw-mt-[30px] xl:tw-px-[60px] xl:tw-max-w-screen-xl xl:tw-mx-auto xl:tw-grid-cols-[auto_364px]"> class="exhibition-content tw-grid tw-grid-cols-1 tw-gap-[30px] tw-mt-[20px] tw-mb-[60px] md:tw-px-[30px] md:tw-mt-[30px] xl:tw-px-[60px] xl:tw-max-w-screen-xl xl:tw-mx-auto xl:tw-grid-cols-[auto_364px]">
{{ relatedservicelist.category }}
<!-- {{ relatedservicelist.category }} 有問題-->
<mobileFixTopBar ref="stickySwiper" :fixBar="fixBar" :currStep="currStep" :list="fixBarList"></mobileFixTopBar> <mobileFixTopBar ref="stickySwiper" :fixBar="fixBar" :currStep="currStep" :list="fixBarList"></mobileFixTopBar>
<section class="section1 tw-px-[30px] md:tw-px-0 xl:tw-w-full xl:tw-col-span-2"> <section class="section1 tw-px-[30px] md:tw-px-0 xl:tw-w-full xl:tw-col-span-2">
<ExhibitionBannerArea :exhibition="exhibition"></ExhibitionBannerArea> <ExhibitionBannerArea :exhibition="exhibition"></ExhibitionBannerArea>
</section> </section>
<section class="section2 tw-px-[30px] md:tw-px-0 xl:tw-pr-[30px] xl:tw-col-start-1 xl:tw-row-start-2"> <section class="section2 tw-px-[30px] md:tw-px-0 xl:tw-pr-[30px] xl:tw-col-start-1 xl:tw-row-start-2">
<Breadcrumbs class="tw-px-0 md:tw-mb-[22px]"></Breadcrumbs>
<!-- <Breadcrumbs class="tw-px-0 md:tw-mb-[22px]"></Breadcrumbs> 有問題-->
<div class="tw-hidden md:tw-block"> <div class="tw-hidden md:tw-block">
<div class="md:tw-h-[48px] md:tw-grid md:tw-grid-cols-3 md:tw-gap-[12px]"> <div class="md:tw-h-[48px] md:tw-grid md:tw-grid-cols-3 md:tw-gap-[12px]">
<a :href="exhibition.website" :target="exhibition.website == '#' ? '_self' : '_blank'"> <a :href="exhibition.website" :target="exhibition.website == '#' ? '_self' : '_blank'">
@ -39,9 +39,9 @@
</div> </div>
</div> </div>
</section> </section>
<!-- <section class="step section3 tw-px-[30px] md:tw-px-0 xl:tw-pr-[30px] xl:tw-col-start-1 xl:tw-row-start-3">
<section class="step section3 tw-px-[30px] md:tw-px-0 xl:tw-pr-[30px] xl:tw-col-start-1 xl:tw-row-start-3">
<ExhibitionIntro class="d-block" :exhibition="exhibition"></ExhibitionIntro> <ExhibitionIntro class="d-block" :exhibition="exhibition"></ExhibitionIntro>
</section> -->
</section>
<section > <section >
<div ref="about" id="about" data-step="about" class="step section3 tw-px-[30px] md:tw-px-0 xl:tw-pr-[30px] xl:tw-col-start-1 xl:tw-row-start-3"> <div ref="about" id="about" data-step="about" class="step section3 tw-px-[30px] md:tw-px-0 xl:tw-pr-[30px] xl:tw-col-start-1 xl:tw-row-start-3">
@ -397,7 +397,7 @@ export default {
) )
.then((result) => { .then((result) => {
if (result.data.DATA.rel) {
if (result && result.data && result.data.DATA && result.data.DATA.rel) {
let exhib = result.data.DATA.rel; let exhib = result.data.DATA.rel;
this.exhibition.id = exhib.ExhibitionID; this.exhibition.id = exhib.ExhibitionID;

Loading…
Cancel
Save