export default {
	clickNavto: (path, type) => {
		// console.log(path, type)
		if (type == 'redirect') {
			uni.redirectTo({
				url: path
			})
		}
		if (type == 'switchTab') {
			uni.switchTab({
				url: path
			})
		}
		if (type == 'navigateBack') {
			uni.navigateBack({
				delta: 1
			})
		}
		if (!type) {
			uni.navigateTo({
				url: path
			})
		}

	}
}