@ -1,6 +1,6 @@
|
||||
.hbuilderx/
|
||||
.history/
|
||||
unpackage/dist/dev/
|
||||
unpackage/dist/build/.automator/
|
||||
# unpackage/dist/dev/
|
||||
# unpackage/dist/build/.automator/
|
||||
node_moudel/
|
||||
package-lock.json
|
@ -1,22 +0,0 @@
|
||||
|
||||
|
||||
/*
|
||||
* @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)
|
||||
}
|
||||
|
||||
})
|
||||
})
|
Before Width: | Height: | Size: 878 B After Width: | Height: | Size: 878 B |
Before Width: | Height: | Size: 604 B After Width: | Height: | Size: 604 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 663 B After Width: | Height: | Size: 663 B |
Before Width: | Height: | Size: 858 B After Width: | Height: | Size: 858 B |
Before Width: | Height: | Size: 484 B After Width: | Height: | Size: 484 B |
Before Width: | Height: | Size: 984 B After Width: | Height: | Size: 984 B |
Before Width: | Height: | Size: 607 B After Width: | Height: | Size: 607 B |
Before Width: | Height: | Size: 6.7 KiB |
Before Width: | Height: | Size: 6.0 KiB |
Before Width: | Height: | Size: 2.6 KiB |