将 favicon 从 SVG 更改为 PNG 格式以提高兼容性,并在 SystemLogo 组件中添加 width 和 height 属性支持。同时更新了相关引用组件中的默认尺寸设置。 fix(button): 限制订单页面发货按钮显示条件 仅当订单状态符合且配送方式为 1 时才显示发货按钮,避免误操作。
@@ -2,7 +2,7 @@
<html lang="zh-cmn-Hans">
<head>
<meta charset="UTF-8" />
- <link rel="icon" href="/favicon.svg" />
+ <link rel="icon" href="/favicon.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="color-scheme" content="light dark" />
<title>%VITE_APP_TITLE%</title>
@@ -1 +0,0 @@
-<svg viewBox="0 0 160 160" xmlns="http://www.w3.org/2000/svg"><path d="M81.28 55.9c-.1-11.67-2.93-22.55-9.37-32.38-1-1.5-2.14-2.86-2.5-4.71a8.1 8.1 0 014-8.61 7.89 7.89 0 019.3 1.23 35.999 35.999 0 015.9 8.83 75.18 75.18 0 018.44 28.58 83.211 83.211 0 01-5.23 36.74 102.983 102.983 0 01-3 7.28 1.2 1.2 0 000 1.41c9.58 13.3 21.76 23 37.85 27.24a54.37 54.37 0 0019.68 1.57 7.72 7.72 0 018.36 6.9 7.903 7.903 0 01-6.7 9 64.744 64.744 0 01-23-1.33 77.68 77.68 0 01-36.93-19.88 93.628 93.628 0 01-11.91-13.71 2.18 2.18 0 00-2.3-1.06 72.744 72.744 0 00-27.38 7.55c-11.6 6-20.67 14.58-26.4 26.45a10.134 10.134 0 01-3.7 4.7 8 8 0 01-9.19-.7 7.86 7.86 0 01-2.36-9.28 60.324 60.324 0 018.72-14.52c12.2-15.43 28.21-24.59 47.32-28.57A85.085 85.085 0 0173.07 87c.524.015 1-.307 1.18-.8a76.06 76.06 0 006.53-22.3c.351-2.652.518-5.325.5-8z" fill="#646cff"/><path d="M136.26 108.34a44.742 44.742 0 01-11.13-2.87 46.108 46.108 0 01-19.66-13.76 8 8 0 015.72-13.22 7.93 7.93 0 016.54 2.93 33.27 33.27 0 0018.87 10.75c1.546.155 3.058.553 4.48 1.18a8.08 8.08 0 013.84 9.21c-.92 3.52-4.13 5.81-8.66 5.78zm-80.6-75.02a7.61 7.61 0 016.64 5 49.139 49.139 0 013.64 17 46.33 46.33 0 01-2.46 17.28c-2 5.77-8.24 7.79-12.89 4.15a8.1 8.1 0 01-2.39-9 31.679 31.679 0 001.68-12.36 35.77 35.77 0 00-2.43-11c-2.1-5.45 1.75-11.07 8.21-11.07zm22.26 93.25a8 8 0 01-6.68 7.86 32.88 32.88 0 00-19.7 12.19 8.13 8.13 0 01-11.21 1.62 8 8 0 01-1.41-11.58A51.043 51.043 0 0154 123.81a45.842 45.842 0 0114-5.1c5.35-1.04 9.91 2.56 9.92 7.86z" fill="#646cff"/></svg>
@@ -1,9 +1,14 @@
<script lang="ts" setup>
defineOptions({ name: 'SystemLogo' });
+const props = defineProps<{
+ width?: string | number;
+ height?: string | number;
+}>();
</script>
<template>
- <icon-local-logo />
+ <!-- <icon-local-logo /> -->
+ <img src="@/assets/svg-icon/logo.png" alt="" :style="{ width: props.width + 'px', height: props.height + 'px' }" />
</template>
<style scoped></style>
@@ -17,7 +17,7 @@ withDefaults(defineProps<Props>(), {
<RouterLink to="/" class="w-full flex-center nowrap-hidden">
- <SystemLogo class="text-32px text-primary" />
+ <SystemLogo class="text-32px text-primary" :height="40" :width="40" />
<h2 v-show="showTitle" class="pl-8px text-16px text-primary font-bold transition duration-300 ease-in-out">
{{ $t('system.title') }}
</h2>
@@ -209,7 +209,7 @@ const { columns, data, loading, getData, mobilePagination } = useNaivePaginatedT
<n-button size="small" type="primary" ghost onClick={() => handleOpenMoadl(row)}>
查看订单
</n-button>
- {ShippingButton.includes(row.hbOrderStatus) && (
+ {ShippingButton.includes(row.hbOrderStatus) && row.dvyType == 1 && (
<n-button
size="small"
class={appStore.isMobile ? ' mt2' : 'ml2'}