Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 541 Bytes

index.md

File metadata and controls

20 lines (15 loc) · 541 Bytes

useProvider

设置服务供应商参数,调用返回方法获取服务供应商。

import { useProvider } from '@uni-helper/uni-use';

const getProvider = useProvider({
  /* 传入配置 */
});
getProvider(); // 获取服务供应商

可以传入一个对象来更新已有配置,这样会使用 扩展运算符 来确认最终配置。

getProvider({
  /* 新传入配置 */
});