update
This commit is contained in:
15
src/utils/uils.js
Normal file
15
src/utils/uils.js
Normal file
@@ -0,0 +1,15 @@
|
||||
export const showToast = (options) => {
|
||||
if (typeof options === 'string') {
|
||||
uni.showToast({
|
||||
title: options,
|
||||
icon: 'none',
|
||||
}).then();
|
||||
} else {
|
||||
uni.showToast(options).then();
|
||||
}
|
||||
}
|
||||
|
||||
export const isWXWeb = () => {
|
||||
const userAgent = navigator.userAgent;
|
||||
return userAgent.includes('MicroMessenger');
|
||||
}
|
||||
Reference in New Issue
Block a user