{"size": 639, "ext": "js", "max_stars_repo_path": "tacomall-ma/utils/uni.js", "max_stars_repo_name": "wuchunfu/tacomall", "max_stars_repo_stars_event_min_datetime": "2021-11-04T09:50:40.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-24T07:28:13.000Z", "max_issues_repo_path": "tacomall-ma/utils/uni.js", "max_issues_repo_name": "wuchunfu/tacomall", "max_issues_repo_issues_event_min_datetime": "2021-12-16T07:05:51.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-09T22:29:17.000Z", "max_forks_repo_path": "tacomall-ma/utils/uni.js", "max_forks_repo_name": "wuchunfu/tacomall", "max_forks_repo_forks_event_min_datetime": "2021-11-08T12:00:34.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-25T07:24:06.000Z"}
{"max_stars_count": 73, "max_issues_count": 2, "max_forks_count": 20, "avg_line_length": 20.6129032258, "max_line_length": 43, "alphanum_fraction": 0.5899843505}
/*
 * @Author: 码上talk|RC
 * @Date: 2021-07-03 15:34:12
 * @LastEditTime: 2021-10-15 17:02:55
 * @LastEditors: 码上talk|RC
 * @Description: 
 * @FilePath: /tacomall-uniapp/utils/uni.js
 * @微信:  13680065830
 * @邮箱:  3189482282@qq.com
 * @oops: Just do what I think it is right
 */
import { defaultsDeep } from 'lodash'
export function nav (url, opts = {}) {
  uni.navigateTo({
    url: url,
    ...opts
  });
}
export function toast (title, opts = {}) {
  let mergeOpts = defaultsDeep(opts, {
    icon: 'none',
    duration: 2000
  })
  uni.showToast({
    title: title,
    ...mergeOpts,
    fail: (e) => {
      console.log(e);
    }
  });
}