diff --git a/src/config.ts b/src/config.ts index 71c89ee..20c3049 100644 --- a/src/config.ts +++ b/src/config.ts @@ -15,7 +15,7 @@ export const ossCdnBase = import.meta.env.PROD ? ossBase : ossBase // 后端地址 export const apiBase = import.meta.env.PROD - ? 'http://106.15.37.113:8300' + ? 'https://goosetab.com/api' : 'http://192.168.110.28:8300' // 后端 cdn 加速地址 diff --git a/src/layout/header/search/useSearchConfigStore.ts b/src/layout/header/search/useSearchConfigStore.ts index 65e9c25..25e7b60 100644 --- a/src/layout/header/search/useSearchConfigStore.ts +++ b/src/layout/header/search/useSearchConfigStore.ts @@ -12,25 +12,25 @@ const defaultSearchList: SearchInfo[] = [ { name: '百度', url: 'https://www.baidu.com/s?wd=', - icon: 'tab/searchIcons/baidu.png', + icon: import.meta.env.PROD ? '/tab/searchIcons/baidu.png' : 'tab/searchIcons/baidu.png', show: true }, { name: '必应', url: 'https://cn.bing.com/search?q=', - icon: 'tab/searchIcons/bing.png', + icon: import.meta.env.PROD ? '/tab/searchIcons/bing.png' : 'tab/searchIcons/bing.png', show: true }, { name: '谷歌', url: 'https://www.google.com/search?q=', - icon: 'tab/searchIcons/google.png', + icon: import.meta.env.PROD ? '/tab/searchIcons/google.png' : 'tab/searchIcons/google.png', show: true }, { name: '360', url: 'https://www.so.com/s?q=', - icon: 'tab/searchIcons/360.png', + icon: import.meta.env.PROD ? '/tab/searchIcons/360.png' : 'tab/searchIcons/360.png', show: true }