Commit 85d6cbf45b3dbf3dbd439683732ea15902c284e0

Authored by fengwotao
1 parent 87ea8d38

feat(packages/external): 天气修改引用静态路径

@@ -23,19 +23,19 @@ export const enum areaEnum { @@ -23,19 +23,19 @@ export const enum areaEnum {
23 export const weatherTextMapImg = [ 23 export const weatherTextMapImg = [
24 { 24 {
25 text: '晴', 25 text: '晴',
26 - img: '/large-designer/src/assets/external/weather/clearDay.png' 26 + img: 'src/assets/external/weather/clearDay.png'
27 }, 27 },
28 { 28 {
29 text: '多云', 29 text: '多云',
30 - img: '/large-designer/src/assets/external/weather/cloudy.png' 30 + img: 'src/assets/external/weather/cloudy.png'
31 }, 31 },
32 { 32 {
33 text: '阴', 33 text: '阴',
34 - img: '/large-designer/src/assets/external/weather/cloudyDay.png' 34 + img: 'src/assets/external/weather/cloudyDay.png'
35 }, 35 },
36 { 36 {
37 text: '小雨', 37 text: '小雨',
38 - img: '/large-designer/src/assets/external/weather/lightRain.png' 38 + img: 'src/assets/external/weather/lightRain.png'
39 } 39 }
40 ] 40 ]
41 41
@@ -4,7 +4,7 @@ export const useUtils = () => { @@ -4,7 +4,7 @@ export const useUtils = () => {
4 const loadWeatherImg = (text: string) => { 4 const loadWeatherImg = (text: string) => {
5 return ( 5 return (
6 weatherTextMapImg.find((item: any) => item.text === text)?.img || 6 weatherTextMapImg.find((item: any) => item.text === text)?.img ||
7 - '/large-designer/src/assets/external/weather/clearDay.png' 7 + '/src/assets/external/weather/clearDay.png'
8 ) 8 )
9 } 9 }
10 10