fix: 国际化头部参数错误

This commit is contained in:
fit2cloud-chenyw 2021-05-18 18:33:52 +08:00
parent 3970913f43
commit a0b6661c5f
3 changed files with 5 additions and 5 deletions

View File

@ -35,8 +35,8 @@ service.interceptors.request.use(
config.headers[LinkTokenKey] = linkToken
}
if (store.getters.language) {
config.headers['Accept-Language'] = store.getters.language
if (i18n.locale) {
config.headers['Accept-Language'] = i18n.locale
}
// 增加loading

View File

@ -34,7 +34,7 @@
:load-options="loadDepts"
:auto-load-root-options="false"
:placeholder="$t('user.choose_org')"
@open="testOpen"
@open="filterData"
/>
</el-form-item>
<el-form-item :label="$t('commons.role')" prop="roleIds">
@ -260,7 +260,7 @@ export default {
backToList() {
this.$router.push({ name: '用户管理' })
},
testOpen(instanceId) {
filterData(instanceId) {
const results = this.depts.map(node => {
if (node.hasChildren) {
node.children = null

View File

@ -175,7 +175,7 @@ export default {
}
],
searchConfig: {
useQuickSearch: false,
useQuickSearch: true,
quickPlaceholder: '按姓名搜索',
components: [
{ field: 'nick_name', label: '姓名', component: 'FuComplexInput' },