完善生产查询与登录权限配置

This commit is contained in:
2026-09-03 19:56:19 +08:00
parent 793f140a45
commit 02c8fb7021
438 changed files with 1595 additions and 573 deletions
@@ -0,0 +1,14 @@
/**
* 显示无图标的 Toast 提示
* @param title 提示文本
* @param option 显示时长(毫秒)默认1500 /显示图标,默认为none,
*/
function toast(title: string, option: number | string | Record<string, any> = 1500): void {
uni.showToast({
title: title,
icon: typeof option === 'string' ? option : typeof option === 'object' ? option.icon || 'none' : 'none',
duration: typeof option === 'number' ? option : typeof option === 'object' ? option.duration || '1500' : 1500
});
}
export default toast;