diff --git a/src/components/UpLoad.vue b/src/components/UpLoad.vue index a72b878..8e0fa1b 100644 --- a/src/components/UpLoad.vue +++ b/src/components/UpLoad.vue @@ -22,7 +22,7 @@ import {loadConfig} from "@/utils/config.ts"; import {API} from "@/assets/config/API.ts"; const imageName = defineModel() -const imageUrl = ref() +const imageUrl = ref("") const uploadUrl= ref() const getImageUrl = (imageName:any) => { if (!imageName) return diff --git a/src/components/home/index/Card.vue b/src/components/home/index/Card.vue index 4559b4b..e5ee58a 100644 --- a/src/components/home/index/Card.vue +++ b/src/components/home/index/Card.vue @@ -14,11 +14,10 @@ const init = async () => { decryptedText.value = await post(API.Common.Auth.Check); list.value = await post(API.Common.Config.List) list.value.forEach((item: any) => { - if (item.k == "logoUrl") { - loadConfig().then((res: any) => { - imageUrl.value = res.base_url + API.Common.File.GetImage + '/' + item.val - }) - } + if (item.k != "logoUrl") return + loadConfig().then((res: any) => { + imageUrl.value = res.base_url + API.Common.File.GetImage + '/' + item.val + }) }) } onMounted(async () => { diff --git a/src/components/home/index/InventoryAlert.vue b/src/components/home/index/InventoryAlert.vue index 6aaeacd..bbf89e5 100644 --- a/src/components/home/index/InventoryAlert.vue +++ b/src/components/home/index/InventoryAlert.vue @@ -83,14 +83,10 @@ const isZeroInventory = (item: any) => { background-image: url("/static/images/home/1-warn.png"); } - .item-right { color: #F69C51; - } - } - .item { float: left; width: 48%; @@ -99,7 +95,6 @@ const isZeroInventory = (item: any) => { border-radius: 8px; display: flex; align-items: center; - justify-content: space-between; flex: 1 1 calc(50% - 8px); //每行显示2个 item,每个 item 占据 33.33% 减去间距 .image { width: 34px; @@ -110,6 +105,7 @@ const isZeroInventory = (item: any) => { .item-content { flex: 1; + min-width: 0; .item-name { font-weight: 400; @@ -134,9 +130,8 @@ const isZeroInventory = (item: any) => { .item-right { - width: 70px; display: flex; - margin-right: 10px; + margin-right: 16px; font-weight: bold; font-style: normal; font-size: 28px; @@ -173,4 +168,23 @@ const isZeroInventory = (item: any) => { } } +.btn{ + font-weight: 500; + font-size: 14px; + color: #999999; + font-style: normal; + cursor: pointer; + position: relative; + background: #E6A23C; + padding-right: 13px; + &:after{ + content: ''; + position: absolute; + display: inline-block; + width: 1px; + height: 12px; + background: #999999; + margin: 0 8px; + } +} \ No newline at end of file