Commit 9318a45e authored by AU-PRO's avatar AU-PRO

add new code: import configure, set useProxies: "never"

parent 70ae2972
'use strict'; 'use strict';
import { makeAutoObservable, observable, computed, action, runInAction, autorun, reaction } from 'mobx' import { makeAutoObservable, observable, computed, action, runInAction, autorun, reaction, configure } from 'mobx'
import { ConsoFunc } from './tools' import { ConsoFunc } from './tools'
configure({
useProxies: "never"
})
class PopState { class PopState {
testNum testNum
......
...@@ -2,10 +2,12 @@ import React, { Component } from 'react'; ...@@ -2,10 +2,12 @@ import React, { Component } from 'react';
import popMap from '../PopMap.js' import popMap from '../PopMap.js'
import { observer } from 'mobx-react-lite' import { observer } from 'mobx-react-lite'
import { toJS } from "mobx"; import { toJS, configure } from "mobx";
configure({
useProxies: "never"
})
import { Aup } from "../index.js" import { Aup } from "../index.js"
import { ConsoleStyleComponents, ConsoleStyleFlagColor } from '../api/tools.js'; import { ConsoleStyleComponents, ConsoleStyleFlagColor } from '../api/tools.js';
import './AUPopMobx.less' import './AUPopMobx.less'
class AUPopMobx extends Component { class AUPopMobx extends Component {
......
'use strict'; 'use strict';
import { makeAutoObservable, observable, computed, action, runInAction, autorun, reaction, configure, toJS } from 'mobx' import { makeAutoObservable, observable, computed, action, runInAction, autorun, reaction, configure, toJS } from 'mobx'
import { CONSO_START_mark, ConsoleStyleTitle, ConsoFunc } from './api/tools' import { CONSO_START_mark, ConsoleStyleTitle, ConsoFunc } from './api/tools'
// configure({ configure({
// useProxies: "never" useProxies: "never"
// }) })
class PopState { class PopState {
nowShow nowShow
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment