fix: 将确认对话框按钮颜色改为绿色
更新生产环境版本检测提示的确认按钮颜色,使用更通用的绿色(#4caf50)替代原有的baseColor
Showing
1 changed file
with
3 additions
and
3 deletions
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2025-03-20 19:53:12 | 2 | * @Date: 2025-03-20 19:53:12 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2025-10-15 10:02:51 | 4 | + * @LastEditTime: 2025-10-15 10:11:57 |
| 5 | * @FilePath: /mlaj/src/App.vue | 5 | * @FilePath: /mlaj/src/App.vue |
| 6 | * @Description: 入口文件 | 6 | * @Description: 入口文件 |
| 7 | --> | 7 | --> |
| ... | @@ -9,7 +9,7 @@ | ... | @@ -9,7 +9,7 @@ |
| 9 | import { RouterView } from "vue-router"; | 9 | import { RouterView } from "vue-router"; |
| 10 | import { provideAuth } from "@/contexts/auth"; | 10 | import { provideAuth } from "@/contexts/auth"; |
| 11 | import { provideCart } from "@/contexts/cart"; | 11 | import { provideCart } from "@/contexts/cart"; |
| 12 | -import { ConfigProvider as VanConfigProvider } from 'vant'; | 12 | +import { ConfigProvider as VanConfigProvider, showConfirmDialog } from 'vant'; |
| 13 | import { themeVars } from './vant.config'; | 13 | import { themeVars } from './vant.config'; |
| 14 | // 会根据配置判断是否显示调试控件 | 14 | // 会根据配置判断是否显示调试控件 |
| 15 | // eslint-disable-next-line no-unused-vars | 15 | // eslint-disable-next-line no-unused-vars |
| ... | @@ -63,7 +63,7 @@ if (import.meta.env.PROD) { | ... | @@ -63,7 +63,7 @@ if (import.meta.env.PROD) { |
| 63 | showConfirmDialog({ | 63 | showConfirmDialog({ |
| 64 | title: '温馨提示', | 64 | title: '温馨提示', |
| 65 | message: '检测到新版本,是否刷新页面!', | 65 | message: '检测到新版本,是否刷新页面!', |
| 66 | - confirmButtonColor: styleColor.baseColor | 66 | + confirmButtonColor: '#4caf50' |
| 67 | }).then(() => { | 67 | }).then(() => { |
| 68 | window.location.reload(); | 68 | window.location.reload(); |
| 69 | }); | 69 | }); | ... | ... |
-
Please register or login to post a comment