Charge coin
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { Model } from 'dva';
|
||||
import _ from 'lodash';
|
||||
import { getLocale, setLocale } from 'umi-plugin-locale'
|
||||
import { loadUser, storeUser, clearUser, clearMineList } from '@/utils/storage';
|
||||
import { loadUser, storeUser, clearUser, clearMineList, clearCoins } from '@/utils/storage';
|
||||
import { User } from '@/types/common';
|
||||
|
||||
const initState = () => {
|
||||
@@ -46,6 +46,7 @@ const model: Model = {
|
||||
|
||||
*logout(_, { put, all }) {
|
||||
clearMineList();
|
||||
clearCoins();
|
||||
yield all([
|
||||
put({ type: 'clearUser' }),
|
||||
put({ type: 'home/clear' }),
|
||||
|
||||
Reference in New Issue
Block a user