|
@@ -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 },
|
|
|
}),
|
|
|
},
|
|
|
|