diff --git a/src/pages/aida/index.vue b/src/pages/aida/index.vue
index 1fea826..d1b0141 100644
--- a/src/pages/aida/index.vue
+++ b/src/pages/aida/index.vue
@@ -14,9 +14,9 @@
const demoVideo = computed(() => {
if (locale.value === 'en') {
- return `${IMAGE_BASE_URL}/wp-content/uploads/2026/02/Demo-video-26-2-27-EN.mp4`
+ return `${IMAGE_BASE_URL}/2026/02/Demo-video-26-2-27-EN.mp4`
}
- return `${IMAGE_BASE_URL}/wp-content/uploads/2026/02/Demo-video-26-2-27-CN.mp4`
+ return `${IMAGE_BASE_URL}/2026/02/Demo-video-26-2-27-CN.mp4`
})
const keyFeatures = computed(() => {
@@ -26,17 +26,17 @@
const benefits = computed(() => {
return [
{
- image: `${IMAGE_BASE_URL}/wp-content/uploads/2022/11/aida_feature_icon_01.png`,
+ image: `${IMAGE_BASE_URL}/2022/11/aida_feature_icon_01.png`,
alt: 'Light bulb icon',
text: t('Aida.benefits1')
},
{
- image: `${IMAGE_BASE_URL}/wp-content/uploads/2022/11/aida_feature_icon_02.png`,
+ image: `${IMAGE_BASE_URL}/2022/11/aida_feature_icon_02.png`,
alt: 'Stopwatch icon',
text: t('Aida.benefits2')
},
{
- image: `${IMAGE_BASE_URL}/wp-content/uploads/2022/11/aida_feature_icon_03-1.png`,
+ image: `${IMAGE_BASE_URL}/2022/11/aida_feature_icon_03-1.png`,
alt: 'Drawing brush icon',
text: t('Aida.benefits3')
}
@@ -310,7 +310,7 @@
AiDA 3.1
@@ -347,13 +347,13 @@
![AiDA design workspace preview]()
diff --git a/src/pages/home/components/Carousel.vue b/src/pages/home/components/Carousel.vue
index fbf7d2d..f9b44d2 100644
--- a/src/pages/home/components/Carousel.vue
+++ b/src/pages/home/components/Carousel.vue
@@ -134,7 +134,7 @@
const slides = computed
(() => [
{
id: 'aida',
- image: `${IMAGE_BASE_URL}/wp-content/uploads/2022/11/mainbanner01-2.jpg`,
+ image: `${IMAGE_BASE_URL}/2022/11/mainbanner01-2.jpg`,
video: '',
alt: t('Home.banner1slogan'),
title: t('Home.banner1slogan'),
@@ -143,7 +143,7 @@
},
{
id: 'mixi',
- image: `${IMAGE_BASE_URL}/wp-content/uploads/2022/11/mainbanner02-3.jpg`,
+ image: `${IMAGE_BASE_URL}/2022/11/mainbanner02-3.jpg`,
video: '',
alt: 'Code Create product banner',
title: t('Home.banner2slogan'),
diff --git a/src/pages/home/index.vue b/src/pages/home/index.vue
index 4e73784..343649c 100644
--- a/src/pages/home/index.vue
+++ b/src/pages/home/index.vue
@@ -18,18 +18,18 @@
{
name: 'AiDA 3.1',
title: t('Home.aidaDesc'),
- backgroundImage: `${IMAGE_BASE_URL}/wp-content/uploads/2022/11/aida_intro_01_bg.png`,
+ backgroundImage: `${IMAGE_BASE_URL}/2022/11/aida_intro_01_bg.png`,
backgroundAlt: 'Fashion design sketches on paper',
- panelImage: `${IMAGE_BASE_URL}/wp-content/uploads/2024/01/new-layout-1.png`,
+ panelImage: `${IMAGE_BASE_URL}/2024/01/new-layout-1.png`,
panelAlt: 'AiDA design workspace preview',
reversed: false
},
{
name: 'Mixi',
title: t('Home.mixiSlogan'),
- backgroundImage: `${IMAGE_BASE_URL}/wp-content/uploads/2022/11/mixi_intro_01_bg.png`,
+ backgroundImage: `${IMAGE_BASE_URL}/2022/11/mixi_intro_01_bg.png`,
backgroundAlt: 'Layered fabric texture',
- panelImage: `${IMAGE_BASE_URL}/wp-content/uploads/2022/11/mixi_intro_01_panel.png`,
+ panelImage: `${IMAGE_BASE_URL}/2022/11/mixi_intro_01_panel.png`,
panelAlt: 'Mixi visual search interface preview',
reversed: true
}
diff --git a/src/pages/user-stories/index.vue b/src/pages/user-stories/index.vue
index 55ebaec..612121d 100644
--- a/src/pages/user-stories/index.vue
+++ b/src/pages/user-stories/index.vue
@@ -1,5 +1,17 @@
diff --git a/src/tools/config.ts b/src/tools/config.ts
index 6a9833a..e6b1726 100644
--- a/src/tools/config.ts
+++ b/src/tools/config.ts
@@ -1 +1 @@
-export const IMAGE_BASE_URL = 'https://code-create.com.hk'
\ No newline at end of file
+export const IMAGE_BASE_URL = 'https://s3.ap-east-1.amazonaws.com/code-create.com.hk'
\ No newline at end of file
From da3ad7f43c7c9140422a40ee700897ffa8537c33 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=8E=E5=BF=97=E9=B9=8F?= <2916022834@qq.com>
Date: Thu, 4 Jun 2026 10:47:16 +0800
Subject: [PATCH 2/2] =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E5=88=9D=E5=A7=8B?=
=?UTF-8?q?=E5=AE=BD=E5=BA=A6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/stores/global.ts | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/src/stores/global.ts b/src/stores/global.ts
index 47002d5..ff0291f 100644
--- a/src/stores/global.ts
+++ b/src/stores/global.ts
@@ -3,7 +3,7 @@ import { ref, computed } from 'vue'
export const useGlobalStore = defineStore('global', () => {
const state = ref({
loading: false,// 全局loading
- windowWidth: window.innerWidth,// 页面宽度
+ windowWidth: 1920,// 页面宽度
})
const setLoading = (v: boolean) => { state.value.loading = v }
@@ -13,6 +13,8 @@ export const useGlobalStore = defineStore('global', () => {
setLoading,
}
})
-window.addEventListener('resize', () => {
- useGlobalStore().state.windowWidth = window.innerWidth
-})
\ No newline at end of file
+function setWindowWidth() {
+ return useGlobalStore().state.windowWidth = window.innerWidth
+}
+window.addEventListener('resize', setWindowWidth)
+window.addEventListener('load', setWindowWidth)
\ No newline at end of file