|
@@ -145,15 +145,15 @@ export default defineComponent({
|
|
|
});
|
|
|
|
|
|
const iconMap = {
|
|
|
- 晴: new URL('../../../../assets/icons/sun.svg', import.meta.url).href,
|
|
|
- 雨: new URL('../../../../assets/icons/rain.svg', import.meta.url).href,
|
|
|
- 雪: new URL('../../../../assets/icons/snow.svg', import.meta.url).href,
|
|
|
- 多云: new URL('../../../../assets/icons/cloud.svg', import.meta.url).href,
|
|
|
- 风: new URL('../../../../assets/icons/wind.svg', import.meta.url).href,
|
|
|
+ 晴: new URL('/src/assets/icons/sun.svg', import.meta.url).href,
|
|
|
+ 雨: new URL('/src/assets/icons/rain.svg', import.meta.url).href,
|
|
|
+ 雪: new URL('/src/assets/icons/snow.svg', import.meta.url).href,
|
|
|
+ 多云: new URL('/src/assets/icons/clound.svg', import.meta.url).href,
|
|
|
+ 风: new URL('/src/assets/icons/wind.svg', import.meta.url).href,
|
|
|
};
|
|
|
|
|
|
function parseWeatherData(res) {
|
|
|
- return iconMap[res] || new URL('../../../../assets/icons/sun.svg', import.meta.url).href;
|
|
|
+ return iconMap[res] || new URL('/src/assets/icons/sun.svg', import.meta.url).href;
|
|
|
}
|
|
|
function showWarningBroad() {
|
|
|
isShowWeatherBroad.value = !isShowWeatherBroad.value;
|