Skip to content

Commit

Permalink
Merge pull request #43 from daiwanxing/perf/useToast
Browse files Browse the repository at this point in the history
perf(useToast): 移除不必要的响应式声明
  • Loading branch information
edwinhuish committed Jul 1, 2024
2 parents 5508ab5 + 220df12 commit a22f48a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/useToast/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ export function useToast(options?: UseToastOptions) {
*/
return function showToast(newOptions?: ShowToastOptions) {
uni.showToast(
reactive({
{
...resolveUnref(options),
...resolveUnref(newOptions),
}),
},
);
/**
* 隐藏消息提示框
Expand Down

0 comments on commit a22f48a

Please sign in to comment.