|
|
@@ -1,6 +1,7 @@
|
|
|
import { reactive, toRefs } from 'vue';
|
|
|
import { LoginaccountModel, MarketrunModal, SelectedAccountModel, UserAccountModel, UserInfoModel } from './initDataModel/account';
|
|
|
import { NeedClearSourceDataType, NoClearSourceDataType } from './interface';
|
|
|
+import eventBus from '@/utils/eventBus/index';
|
|
|
|
|
|
/**
|
|
|
* 需要清空数据中心
|
|
|
@@ -44,6 +45,7 @@ class DataCenter {
|
|
|
|
|
|
/** 重置所有数据 */
|
|
|
public reset(): void {
|
|
|
+ eventBus.$offall('moneyChangedNtf_UI'); // 取消资金变动通知
|
|
|
this.data = toRefs<NeedClearSourceDataType>(reactive(Object.assign({}, needClearSourceData)));
|
|
|
}
|
|
|
|