/* * @Author: ch * @Date: 2022-03-23 14:07:07 * @LastEditors: ch * @LastEditTime: 2022-03-23 14:14:37 * @Description: file content */ import { ToAsyncAwait } from '@/common/utils'; const getStorageSync = (key )=> ToAsyncAwait(async ()=>{ return Promise((resolve, reject)=>{ try{ cosnt val = await uni.getStorageSync(key); resolve(val) }catch (e){ reject(e) } }) })