24 lines
544 B
JavaScript
24 lines
544 B
JavaScript
import store from "@/store/index.js"
|
|
|
|
const USE_SOTER_AUTH_KEY = 'USE_SOTER_AUTH_KEY'
|
|
|
|
/**
|
|
* 初始化配置
|
|
*/
|
|
const initWalletConfigs = () => {
|
|
// 生物识别
|
|
const USE_SOTER = Boolean(uni.getStorageSync(USE_SOTER_AUTH_KEY))
|
|
store.dispatch('wallet/setSoterAuth', USE_SOTER)
|
|
// 获取默认钱包
|
|
}
|
|
|
|
const setSoterAuthStatus = (opt) => {
|
|
uni.setStorageSync(USE_SOTER_AUTH_KEY, opt)
|
|
store.dispatch('wallet/setSoterAuth', opt)
|
|
}
|
|
|
|
export default {
|
|
USE_SOTER_AUTH_KEY,
|
|
setSoterAuthStatus,
|
|
initWalletConfigs
|
|
} |