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";
1414import { Suspense , lazy } from "react" ;
1515import Flex from "antd/es/flex" ;
1616import { TacoButton } from "components/button" ;
17+ import { DatasourceApi } from "@lowcoder-ee/api/datasourceApi" ;
18+ import { registryDataSourcePlugin } from "@lowcoder-ee/constants/queryConstants" ;
1719
1820const AppView = lazy (
1921 ( ) => import ( './AppView' )
@@ -101,6 +103,12 @@ export class AppViewInstance<I = any, O = any> {
101103 } ;
102104 }
103105 } ) ;
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+ } ) ;
104112
105113 setGlobalSettings ( {
106114 orgCommonSettings : data . data . orgCommonSettings ,
You can’t perform that action at this time.
0 commit comments