Explorar o código

feat: 接口地址更换

leo %!s(int64=2) %!d(string=hai) anos
pai
achega
946ae3fa3a

+ 1 - 1
packages/jldbq-extenison/schema/plugin.json

@@ -7,7 +7,7 @@
       "title": "Flask Backend address.",
       "description": "Flask Backend address.",
       "type": "string",
-      "default": "http://192.168.199.80:18082"
+      "default": "http://192.168.199.107:18082"
     }
   },
   "additionalProperties": false

+ 1 - 1
packages/jldbq-extenison/src/DatasourceForm.tsx

@@ -119,7 +119,7 @@ export class DatasourceFormDialogBody
             datasource: v.type
           } as IDatasourceForm;
           const res = await textDatasource(params);
-          if (res) {
+          if (res && res !== 'error') {
             void message.success('测试成功');
           } else {
             void message.error('测试失败');

+ 1 - 1
packages/jldbq-extenison/src/api/config.ts

@@ -1,5 +1,5 @@
 const config = {
-  endpoint: 'http://192.168.199.80:18082'
+  endpoint: 'http://192.168.199.107:18082'
 };
 
 export default config;