ソースを参照

chore(api): 注释掉目前无用的接口

ccnnde 2 ヶ月 前
コミット
430190f86a
2 ファイル変更7 行追加7 行削除
  1. 3 3
      src/App.vue
  2. 4 4
      src/services/user.ts

+ 3 - 3
src/App.vue

@@ -7,14 +7,14 @@ import { onBeforeMount } from 'vue';
 
 import { useUser } from './services/user';
 import { changeTheme, registerTheme } from './services/echarts';
-import { useEnterprise } from './services/enterprise';
+// import { useEnterprise } from './services/enterprise';
 import { switchTheme } from './services/theme';
 
 const { getUser } = useUser();
-const { getEnterprise } = useEnterprise();
+// const { getEnterprise } = useEnterprise();
 
 onBeforeMount(() => {
-  getEnterprise();
+  // getEnterprise();
   setTimeout(() => {
     registerTheme();
     // changeTheme('le-dark');

+ 4 - 4
src/services/user.ts

@@ -88,13 +88,13 @@ export const useUser = () => {
     // }
     // const ret: IUser = await axios.get('/api/account/profile', { params });
     const ret: IUser = await getProfile(axios);
-    const statistics: any = await axios.post('/api/account/statistics');
+    // const statistics: any = await axios.post('/api/account/statistics');
     if (!ret) {
       return;
     }
-    if (statistics) {
-      ret.limit = statistics.documents?.le5leV?.limit;
-    }
+    // if (statistics) {
+    //   ret.limit = statistics.documents?.le5leV?.limit;
+    // }
     setUser(ret);
 
     return user;