|
|
@@ -95,9 +95,10 @@ const Widget = () => {
|
|
|
/**
|
|
|
* 启动时载入格位公式字典
|
|
|
*/
|
|
|
- get<IApiResponseDictList>(
|
|
|
- `/v2/userdict?view=dict&id=2142c229-8860-4ca5-a82e-1afc7e4f1e5d`
|
|
|
- ).then((json) => {
|
|
|
+ //TODO 存储到session storage
|
|
|
+ const url = `/v2/userdict?view=dict&id=2142c229-8860-4ca5-a82e-1afc7e4f1e5d`;
|
|
|
+ console.log("url", url);
|
|
|
+ get<IApiResponseDictList>(url).then((json) => {
|
|
|
console.log("_formula_ ok", json.data.count);
|
|
|
//存储到redux
|
|
|
store.dispatch(add(json.data.rows));
|