File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
client/packages/lowcoder/src/appView Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ import { saveAuthSearchParams } from "pages/userAuth/authUtils";
14
14
import { Suspense , lazy } from "react" ;
15
15
import Flex from "antd/es/flex" ;
16
16
import { TacoButton } from "components/button" ;
17
+ import { DatasourceApi } from "@lowcoder-ee/api/datasourceApi" ;
18
+ import { registryDataSourcePlugin } from "@lowcoder-ee/constants/queryConstants" ;
17
19
18
20
const AppView = lazy (
19
21
( ) => import ( './AppView' )
@@ -101,6 +103,12 @@ export class AppViewInstance<I = any, O = any> {
101
103
} ;
102
104
}
103
105
} ) ;
106
+
107
+ await DatasourceApi . fetchJsDatasourceByApp ( this . appId ) . then ( ( res ) => {
108
+ res . data . data . forEach ( ( i ) => {
109
+ registryDataSourcePlugin ( i . type , i . id , i . pluginDefinition ) ;
110
+ } ) ;
111
+ } ) ;
104
112
105
113
setGlobalSettings ( {
106
114
orgCommonSettings : data . data . orgCommonSettings ,
You can’t perform that action at this time.
0 commit comments