This is an automated email from the ASF dual-hosted git repository.

liubao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-fence.git

commit e3392a707711709bddcab9bd3ab934c152a08102
Author: liubao <[email protected]>
AuthorDate: Thu Aug 15 16:00:35 2024 +0800

    remove not used import
---
 admin-website/src/main/web/src/main.ts              | 10 ----------
 .../src/main/web/src/utils/hwcClient.service.ts     | 21 ---------------------
 2 files changed, 31 deletions(-)

diff --git a/admin-website/src/main/web/src/main.ts 
b/admin-website/src/main/web/src/main.ts
index cdd1b63..1db113e 100644
--- a/admin-website/src/main/web/src/main.ts
+++ b/admin-website/src/main/web/src/main.ts
@@ -1,6 +1,5 @@
 import { createApp } from 'vue';
 import * as echarts4 from 'echarts4';
-import { HwcClient } from '@opentiny/hwc-client';
 import globalComponents from '@/components';
 import router from './router';
 import store from './store';
@@ -9,21 +8,12 @@ import directive from './directive';
 import App from './App.vue';
 import '@/api/interceptor';
 import '@/assets/style/global.less';
-import config from '../hwc-exports.json';
-// eslint-disable-next-line import/extensions
 import 'echarts4/map/js/china.js';
 import chinaMap from './assets/chaina.json';
 
 echarts4.registerMap('china', chinaMap);
 const app = createApp(App);
 
-// 增加华为云相关配置
-HwcClient.configure({
-  ...config.hwcConfig,
-  accessKey: '',
-  secretKey: '',
-});
-
 app.use(router);
 app.use(store);
 app.use(i18n({ locale: 'zhCN' }));
diff --git a/admin-website/src/main/web/src/utils/hwcClient.service.ts 
b/admin-website/src/main/web/src/utils/hwcClient.service.ts
deleted file mode 100644
index d32389f..0000000
--- a/admin-website/src/main/web/src/utils/hwcClient.service.ts
+++ /dev/null
@@ -1,21 +0,0 @@
-import { HwcClient } from '@opentiny/hwc-client';
-import { ApigInfo } from '@/types/global';
-import BaseUtils from '@/utils/base-utils';
-
-export class HwcClientService {
-  static async apiRequest(fnName: string, params: any, apigInfo: ApigInfo) {
-    try {
-      const response = await HwcClient.apigClient.exec(
-        apigInfo.apigGroupName,
-        apigInfo.apigName,
-        {
-          query: { fn_name: fnName },
-          body: JSON.stringify(params),
-        }
-      );
-      return await response?.json();
-    } catch (error) {
-      return BaseUtils.getErrorMessage(error);
-    }
-  }
-}

Reply via email to