Sfoglia il codice sorgente

feat: 优化细节

叶静 3 settimane fa
parent
commit
c827fb172e
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. 3 1
      src/app/shop/admin/finance/finance.service.js

+ 3 - 1
src/app/shop/admin/finance/finance.service.js

@@ -2,6 +2,8 @@ import Content from '@/sheep/layouts/content.vue';
 import { SELECT, CRUD } from '@/sheep/request/crud';
 import { request } from '@/sheep/request';
 import i18n from '@/locales';
+import { getCurrentLanguage } from '@/locales';
+const currentLanguage = getCurrentLanguage();
 
 // 获取 t 函数
 const { t } = i18n.global;
@@ -214,7 +216,7 @@ const api = {
       request({
         url: '/cif/api/user/getEnum',
         method: 'GET',
-        params: { id: 5 },
+        params: { id: 5, lang: currentLanguage },
       }),
   },