diff --git a/Yi.App.Vue3/components.d.ts b/Yi.App.Vue3/components.d.ts index 26d80cd0..e69de29b 100644 --- a/Yi.App.Vue3/components.d.ts +++ b/Yi.App.Vue3/components.d.ts @@ -1,46 +0,0 @@ -// generated by unplugin-vue-components -// We suggest you to commit this file into source control -// Read more: https://github.com/vuejs/core/pull/3399 -import '@vue/runtime-core' - -export {} - -declare module '@vue/runtime-core' { - export interface GlobalComponents { - AppCard: typeof import('./src/components/AppCard.vue')['default'] - AppCreateTime: typeof import('./src/components/AppCreateTime.vue')['default'] - AppGrid: typeof import('./src/components/AppGrid.vue')['default'] - AppUserIcon: typeof import('./src/components/AppUserIcon.vue')['default'] - HelloWorld: typeof import('./src/components/HelloWorld.vue')['default'] - RouterLink: typeof import('vue-router')['RouterLink'] - RouterView: typeof import('vue-router')['RouterView'] - VanActionBar: typeof import('vant/es')['ActionBar'] - VanActionBarButton: typeof import('vant/es')['ActionBarButton'] - VanActionBarIcon: typeof import('vant/es')['ActionBarIcon'] - VanActionSheet: typeof import('vant/es')['ActionSheet'] - VanButton: typeof import('vant/es')['Button'] - VanCell: typeof import('vant/es')['Cell'] - VanCellGroup: typeof import('vant/es')['CellGroup'] - VanCol: typeof import('vant/es')['Col'] - VanDivider: typeof import('vant/es')['Divider'] - VanField: typeof import('vant/es')['Field'] - VanGrid: typeof import('vant/es')['Grid'] - VanGridItem: typeof import('vant/es')['GridItem'] - VanIcon: typeof import('vant/es')['Icon'] - VanImage: typeof import('vant/es')['Image'] - VanList: typeof import('vant/es')['List'] - VanLoading: typeof import('vant/es')['Loading'] - VanNavBar: typeof import('vant/es')['NavBar'] - VanPopup: typeof import('vant/es')['Popup'] - VanPullRefresh: typeof import('vant/es')['PullRefresh'] - VanRow: typeof import('vant/es')['Row'] - VanSticky: typeof import('vant/es')['Sticky'] - VanSwipe: typeof import('vant/es')['Swipe'] - VanSwipeItem: typeof import('vant/es')['SwipeItem'] - VanTab: typeof import('vant/es')['Tab'] - VanTabbar: typeof import('vant/es')['Tabbar'] - VanTabbarItem: typeof import('vant/es')['TabbarItem'] - VanTabs: typeof import('vant/es')['Tabs'] - VanUploader: typeof import('vant/es')['Uploader'] - } -} diff --git a/Yi.App.Vue3/src/assets/icon.jpg b/Yi.App.Vue3/public/icon.jpg similarity index 100% rename from Yi.App.Vue3/src/assets/icon.jpg rename to Yi.App.Vue3/public/icon.jpg diff --git a/Yi.App.Vue3/src/components/AppUserIcon.vue b/Yi.App.Vue3/src/components/AppUserIcon.vue index a54973a3..7f342221 100644 --- a/Yi.App.Vue3/src/components/AppUserIcon.vue +++ b/Yi.App.Vue3/src/components/AppUserIcon.vue @@ -13,7 +13,7 @@ const url = `${import.meta.env.VITE_APP_BASE_API}/file/`; const getUrl = () => { const src = props.src; if (src === null || typeof src === "undefined" || src.trim() === "") { - return "@/assets/icon.jpg"; + return "/icon.jpg"; // 字符串为 null、未定义或为空字符串 } else {